summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-01-30 16:20:37 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-01-30 16:20:37 +0100
commitf96a5a1cf8800edc2f6a6d73316f7d7c67f32e29 (patch)
tree3081be7874ac1594e1ab4b9c58f2de503acac0b5 /module/plugins/hoster
parentfixed ssl xmlrpc backend (diff)
downloadpyload-f96a5a1cf8800edc2f6a6d73316f7d7c67f32e29.tar.xz
cleanup code
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/Xdcc.py2
-rw-r--r--module/plugins/hoster/YourfilesTo.py8
2 files changed, 5 insertions, 5 deletions
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