From 7ab16b360739c4754c954ceb54b226ab0a30c215 Mon Sep 17 00:00:00 2001 From: Nitzo Date: Sat, 2 Jan 2016 01:37:43 +0200 Subject: "is" is evil --- module/plugins/internal/SimpleCrypter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/internal/SimpleCrypter.py') diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py index d8bb7ad3c..0cd343426 100644 --- a/module/plugins/internal/SimpleCrypter.py +++ b/module/plugins/internal/SimpleCrypter.py @@ -11,7 +11,7 @@ from module.plugins.internal.misc import parse_name, replace_patterns class SimpleCrypter(Crypter): __name__ = "SimpleCrypter" __type__ = "crypter" - __version__ = "0.82" + __version__ = "0.83" __status__ = "testing" __pattern__ = r'^unmatchable$' @@ -90,12 +90,12 @@ class SimpleCrypter(Crypter): info.update(cls.api_info(url)) - if not html and info['status'] is not 2: + if not html and info['status'] != 2: if not url: info['error'] = "missing url" info['status'] = 1 - elif info['status'] is 3: + elif info['status'] == 3: try: html = get_url(url, cookies=cls.COOKIES, decode=cls.TEXT_ENCODING) -- cgit v1.2.3