summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Jochen Oberreiter <joberreiter@users.noreply.github.com> 2015-08-11 14:16:55 +0200
committerGravatar Jochen Oberreiter <joberreiter@users.noreply.github.com> 2015-08-11 14:16:55 +0200
commitf67e83d159df8cfcd745295517cda239563f65c7 (patch)
tree2c78996672c1f827e6b3531b869e1e9e7f2212af /module
parentFix error introduced by function rename (diff)
downloadpyload-f67e83d159df8cfcd745295517cda239563f65c7.tar.xz
Change comparison from identity to equality
Using '==' instead of 'is' for the comparison.
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hooks/Checksum.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hooks/Checksum.py b/module/plugins/hooks/Checksum.py
index 80d93dc39..d47c561eb 100644
--- a/module/plugins/hooks/Checksum.py
+++ b/module/plugins/hooks/Checksum.py
@@ -38,7 +38,7 @@ def compute_checksum(local_file, algorithm):
class Checksum(Addon):
__name__ = "Checksum"
__type__ = "hook"
- __version__ = "0.19"
+ __version__ = "0.20"
__status__ = "testing"
__config__ = [("check_checksum", "bool" , "Check checksum? (If False only size will be verified)", True ),
@@ -133,7 +133,7 @@ class Checksum(Addon):
if key in data:
checksum = compute_checksum(local_file, key.replace("-", "").lower())
if checksum:
- if checksum is data[key].lower():
+ if checksum == data[key].lower():
self.log_info(_('File integrity of "%s" verified by %s checksum (%s)') %
(pyfile.name, key.upper(), checksum))
break