Skip to content

Commit a3b261c

Browse files
committed
Refactoring
1 parent 2bdbfc2 commit a3b261c

File tree

1 file changed

+2
-3
lines changed
  • zip_file_example/extract_file_in_memory

1 file changed

+2
-3
lines changed

zip_file_example/extract_file_in_memory/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55

66

77
import zipfile
8-
import sys
98

109
from pathlib import Path
1110

12-
sys.path.append(str(Path(__file__).resolve().parent.parent.parent))
13-
from human_byte_size import sizeof_fmt
11+
# pip install humanize
12+
from humanize import naturalsize as sizeof_fmt
1413

1514

1615
FILE_NAME = Path('Doc_df7c89c378c04e8daf69257ea95d9a2e.zip')

0 commit comments

Comments
 (0)