summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/misc.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-30 09:21:34 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-30 09:21:34 +0100
commitff880300c3200d0c6adfd2f8f3732a10e06d30ec (patch)
tree3b69549494e45378ffc7dd3fc410d4c50b3aa82c /module/plugins/internal/misc.py
parentMerge pull request #2231 from sebdelsol/patch-4 (diff)
downloadpyload-ff880300c3200d0c6adfd2f8f3732a10e06d30ec.tar.xz
Fix https://github.com/pyload/pyload/issues/2235
Diffstat (limited to 'module/plugins/internal/misc.py')
-rw-r--r--module/plugins/internal/misc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/misc.py b/module/plugins/internal/misc.py
index 80c91bf24..1f4f9af1a 100644
--- a/module/plugins/internal/misc.py
+++ b/module/plugins/internal/misc.py
@@ -32,7 +32,7 @@ except ImportError:
class misc(object):
__name__ = "misc"
__type__ = "plugin"
- __version__ = "0.12"
+ __version__ = "0.13"
__status__ = "stable"
__pattern__ = r'^unmatchable$'
@@ -803,7 +803,7 @@ def compute_checksum(filename, hashtype):
last = 0
with open(file, "rb") as f:
- for chunk in iter(lambda: f.read(buf), b''):
+ for chunk in iter(lambda: f.read(buf), ''):
last = hf(chunk, last)
return "%x" % last
@@ -812,7 +812,7 @@ def compute_checksum(filename, hashtype):
h = hashlib.new(hashtype)
with open(file, "rb") as f:
- for chunk in iter(lambda: f.read(buf * h.block_size), b''):
+ for chunk in iter(lambda: f.read(buf * h.block_size), ''):
h.update(chunk)
return h.hexdigest()