summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-05 18:05:16 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-05 18:05:16 +0200
commit654f816389e2a91f82d9569b4a12fb5f7c356545 (patch)
tree8fdedff50ffc1bba85df1d92bf920366b7bf77fc /module
parent[UpdateManager] Better if-condition check (thx stickell) (diff)
downloadpyload-654f816389e2a91f82d9569b4a12fb5f7c356545.tar.xz
Use "is" instead "==" for bool condition check
Diffstat (limited to 'module')
-rw-r--r--module/plugins/captcha/captcha.py2
-rw-r--r--module/plugins/hoster/MegacrypterCom.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/captcha/captcha.py b/module/plugins/captcha/captcha.py
index 7e4dec697..74b3205b4 100644
--- a/module/plugins/captcha/captcha.py
+++ b/module/plugins/captcha/captcha.py
@@ -268,7 +268,7 @@ class OCR(object):
black_pixel_in_col = True
- if black_pixel_in_col == False and started == True:
+ if black_pixel_in_col is False and started is True:
rect = (firstX, topY, lastX, bottomY)
new_captcha = captcha.crop(rect)
diff --git a/module/plugins/hoster/MegacrypterCom.py b/module/plugins/hoster/MegacrypterCom.py
index ee6be39a2..9fcf40214 100644
--- a/module/plugins/hoster/MegacrypterCom.py
+++ b/module/plugins/hoster/MegacrypterCom.py
@@ -36,7 +36,7 @@ class MegacrypterCom(MegaNz):
dl = self.callApi(link=node, m="dl")
# TODO: map error codes, implement password protection
- # if info["pass"] == True:
+ # if info["pass"] is True:
# crypted_file_key, md5_file_key = info["key"].split("#")
key = self.b64_decode(info["key"])