diff options
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/crypter/SecuredIn.py | 6 | ||||
-rw-r--r-- | module/plugins/hoster/Xdcc.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/YourfilesTo.py | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/crypter/SecuredIn.py b/module/plugins/crypter/SecuredIn.py index 0985d663b..e41896c5f 100644 --- a/module/plugins/crypter/SecuredIn.py +++ b/module/plugins/crypter/SecuredIn.py @@ -228,11 +228,11 @@ class SecuredIn(Crypter): yploemju = -1 for i in range(0, len(yoiumqpy)): yploamzu = ord(yoiumqpy[i]) - if ord('A') <= yploamzu and yploamzu <= ord('Z'): + if ord('A') <= yploamzu <= ord('Z'): xoliuzem = ord(yoiumqpy[i]) - 65 - elif ord('a') <= yploamzu and yploamzu <= ord('z'): + elif ord('a') <= yploamzu <= ord('z'): xoliuzem = ord(yoiumqpy[i]) - 97 + 26 - elif ord('0') <= yploamzu and yploamzu <= ord('9'): + elif ord('0') <= yploamzu <= ord('9'): xoliuzem = ord(yoiumqpy[i]) - 48 + 52 elif yploamzu == ord('+'): xoliuzem = 62 diff --git a/module/plugins/hoster/Xdcc.py b/module/plugins/hoster/Xdcc.py index fe194abe1..bc35cf6ea 100644 --- a/module/plugins/hoster/Xdcc.py +++ b/module/plugins/hoster/Xdcc.py @@ -189,7 +189,7 @@ class Xdcc(Hoster): self.fail("Wrong channel")
m = re.match('\x01DCC SEND (.*?) (\d+) (\d+)(?: (\d+))?\x01', msg["text"])
- if m != None:
+ if m is not None:
done = True
# get connection data
diff --git a/module/plugins/hoster/YourfilesTo.py b/module/plugins/hoster/YourfilesTo.py index 90c261d02..18f2d3edf 100644 --- a/module/plugins/hoster/YourfilesTo.py +++ b/module/plugins/hoster/YourfilesTo.py @@ -36,7 +36,7 @@ class YourfilesTo(Hoster): self.wait()
def get_waiting_time(self):
- if self.html == None:
+ if self.html is None:
self.download_html()
#var zzipitime = 15;
@@ -60,7 +60,7 @@ class YourfilesTo(Hoster): return url;
def get_file_name(self):
- if self.html == None:
+ if self.html is None:
self.download_html()
return re.search("<title>(.*)</title>", self.html).group(1)
@@ -68,10 +68,10 @@ class YourfilesTo(Hoster): def file_exists(self):
""" returns True or False
"""
- if self.html == None:
+ if self.html is None:
self.download_html()
- if re.search(r"HTTP Status 404", self.html) != None:
+ if re.search(r"HTTP Status 404", self.html) is not None:
return False
else:
return True
|