From a33d8062833d1bfec4777145cc484c1d6b9e141f Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 27 Aug 2010 17:07:33 +0200 Subject: some automatic fixes --- module/plugins/hoster/ShareCx.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'module/plugins/hoster/ShareCx.py') diff --git a/module/plugins/hoster/ShareCx.py b/module/plugins/hoster/ShareCx.py index e64459754..63a51eab7 100644 --- a/module/plugins/hoster/ShareCx.py +++ b/module/plugins/hoster/ShareCx.py @@ -62,7 +62,7 @@ class ShareCx(Hoster): def doDownload(self): """ returns the absolute downloadable filepath """ - if self.html == None: + if self.html is None: self.download_html() op = re.search(r'name="op" value="(.*?)"', self.html).group(1) @@ -83,7 +83,7 @@ class ShareCx(Hoster): m = re.search(r'startTimer\((\d+)\)', self.html) - if m != None: + if m is not None: wait_time = int(m.group(1)) self.setWait(wait_time) self.wantReconnect = True @@ -91,9 +91,9 @@ class ShareCx(Hoster): self.wait() m = re.search(r'countdown">.*?(\d+).*?', self.html) - if m == None: + if m is None: m = re.search(r'id="countdown_str".*?.*?(\d+).*?(.*?)', self.html).group(1) @@ -144,10 +144,10 @@ class ShareCx(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'File not found
It was deleted due to inactivity or abuse request', self.html) != None: + if re.search(r'File not found
It was deleted due to inactivity or abuse request', self.html) is not None: return False return True -- cgit v1.2.3