Skip to content

Commit 280b59c

Browse files
committed
Refactoring
1 parent 0e087c4 commit 280b59c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

torrent_file/total_torrent_size.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@
44
__author__ = 'ipetrash'
55

66

7-
import sys
8-
from pathlib import Path
9-
107
import effbot_bencode
118

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

1512

1613
with open('_.torrent', 'rb') as f:

0 commit comments

Comments
 (0)