diff options
Diffstat (limited to 'kindlecomicconverter/shared.py')
-rw-r--r-- | kindlecomicconverter/shared.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kindlecomicconverter/shared.py b/kindlecomicconverter/shared.py index c2a8ecf..6f3a0aa 100644 --- a/kindlecomicconverter/shared.py +++ b/kindlecomicconverter/shared.py @@ -73,8 +73,8 @@ def walkLevel(some_dir, level=1): del dirs[:] -def md5Checksum(filePath): - with open(filePath, 'rb') as fh: +def md5Checksum(fpath): + with open(fpath, 'rb') as fh: m = md5() while True: data = fh.read(8192) @@ -84,8 +84,8 @@ def md5Checksum(filePath): return m.hexdigest() -def check7ZFile(filePath): - with open(filePath, 'rb') as fh: +def check7ZFile(fpath): + with open(fpath, 'rb') as fh: header = fh.read(6) return header == b"7z\xbc\xaf'\x1c" |