From 275ecd47f14ebee8309de1e1f13d090ca50c38fe Mon Sep 17 00:00:00 2001 From: Nitzo Date: Sun, 10 Jan 2016 02:12:35 +0200 Subject: "is" is evil (2) --- module/plugins/captcha/LinksaveIn.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/captcha/LinksaveIn.py') diff --git a/module/plugins/captcha/LinksaveIn.py b/module/plugins/captcha/LinksaveIn.py index 34e32a208..2724af6c7 100644 --- a/module/plugins/captcha/LinksaveIn.py +++ b/module/plugins/captcha/LinksaveIn.py @@ -15,7 +15,7 @@ from module.plugins.internal.OCR import OCR class LinksaveIn(OCR): __name__ = "LinksaveIn" __type__ = "ocr" - __version__ = "0.16" + __version__ = "0.17" __status__ = "testing" __description__ = """Linksave.in ocr plugin""" @@ -83,7 +83,7 @@ class LinksaveIn(OCR): except Exception: cstat[rgb_c] = 1 - if rgb_bg is rgb_c: + if rgb_bg == rgb_c: stat[bgpath] += 1 max_p = 0 bg = "" @@ -113,7 +113,7 @@ class LinksaveIn(OCR): for y in xrange(bg.size[1]): rgb_bg = bglut[bgpix[x, y]] rgb_c = lut[pix[x, y]] - if rgb_c is rgb_bg: + if rgb_c == rgb_bg: orgpix[x, y] = (255, 255, 255) -- cgit v1.2.3