about summary refs log tree commit diff
path: root/kindlecomicconverter/shared.py
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@iosphe.re>2017-11-02 10:28:43 +0100
committerPaweł Jastrzębski <pawelj@iosphe.re>2017-11-02 10:28:43 +0100
commita695a4c151765e983126a6037c589aa91452e554 (patch)
tree80303dc7c4f601f2bef69157f711ec8394ce9a80 /kindlecomicconverter/shared.py
parentUpdated build enviroment (diff)
downloadkcc-a695a4c151765e983126a6037c589aa91452e554.tar.gz
kcc-a695a4c151765e983126a6037c589aa91452e554.tar.bz2
kcc-a695a4c151765e983126a6037c589aa91452e554.zip
Code cleanup
Diffstat (limited to '')
-rw-r--r--kindlecomicconverter/shared.py8
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"