summaryrefslogtreecommitdiffstats
path: root/module/plugins/captcha
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/plugins/captcha
parent[UpdateManager] Better if-condition check (thx stickell) (diff)
downloadpyload-654f816389e2a91f82d9569b4a12fb5f7c356545.tar.xz
Use "is" instead "==" for bool condition check
Diffstat (limited to 'module/plugins/captcha')
-rw-r--r--module/plugins/captcha/captcha.py2
1 files changed, 1 insertions, 1 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)