diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-24 23:57:04 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-24 23:57:04 +0200 |
commit | dd13825fbd3df9e441200638cd2a92e3924dfff6 (patch) | |
tree | 9159fc1b77d6f6dbf1e7871ed2fb64886f433f1f /module/plugins/hooks | |
parent | Code cosmetics (diff) | |
download | pyload-dd13825fbd3df9e441200638cd2a92e3924dfff6.tar.xz |
Fix typo
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r-- | module/plugins/hooks/Captcha9Kw.py | 4 | ||||
-rw-r--r-- | module/plugins/hooks/Checksum.py | 2 | ||||
-rw-r--r-- | module/plugins/hooks/DeleteFinished.py | 2 | ||||
-rw-r--r-- | module/plugins/hooks/IRCInterface.py | 2 | ||||
-rw-r--r-- | module/plugins/hooks/RestartFailed.py | 2 | ||||
-rw-r--r-- | module/plugins/hooks/UnSkipOnFail.py | 4 |
6 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/hooks/Captcha9Kw.py b/module/plugins/hooks/Captcha9Kw.py index be01688e2..e9edbe7f9 100644 --- a/module/plugins/hooks/Captcha9Kw.py +++ b/module/plugins/hooks/Captcha9Kw.py @@ -81,7 +81,7 @@ class Captcha9Kw(Hook): details = map(str.strip, opt.split(':')) - if not details or details[0].lower() not is pluginname.lower(): + if not details or details[0].lower() is not pluginname.lower(): continue for d in details: @@ -187,7 +187,7 @@ class Captcha9Kw(Hook): for opt in str(self.get_config('hoster_options').split('|')): details = map(str.strip, opt.split(':')) - if not details or details[0].lower() not is pluginname.lower(): + if not details or details[0].lower() is not pluginname.lower(): continue for d in details: diff --git a/module/plugins/hooks/Checksum.py b/module/plugins/hooks/Checksum.py index 06cb09215..9eb47e8a6 100644 --- a/module/plugins/hooks/Checksum.py +++ b/module/plugins/hooks/Checksum.py @@ -114,7 +114,7 @@ class Checksum(Addon): api_size = int(data['size']) file_size = os.path.getsize(local_file) - if api_size not is file_size: + if api_size is not file_size: self.log_warning(_("File %s has incorrect size: %d B (%d expected)") % (pyfile.name, file_size, api_size)) self.check_failed(pyfile, local_file, "Incorrect file size") diff --git a/module/plugins/hooks/DeleteFinished.py b/module/plugins/hooks/DeleteFinished.py index 8981c6ac1..75a282808 100644 --- a/module/plugins/hooks/DeleteFinished.py +++ b/module/plugins/hooks/DeleteFinished.py @@ -39,7 +39,7 @@ class DeleteFinished(Addon): # def plugin_config_changed(self, plugin, name, value): - # if name == "interval" and value not is self.interval: + # if name == "interval" and value is not self.interval: # self.interval = value * 3600 # self.init_periodical() diff --git a/module/plugins/hooks/IRCInterface.py b/module/plugins/hooks/IRCInterface.py index c018850b6..08b1bad0c 100644 --- a/module/plugins/hooks/IRCInterface.py +++ b/module/plugins/hooks/IRCInterface.py @@ -150,7 +150,7 @@ class IRCInterface(Thread, Addon): if not msg['origin'].split("!", 1)[0] in self.get_config('owner').split(): return - if msg['target'].split("!", 1)[0] not is self.get_config('nick'): + if msg['target'].split("!", 1)[0] is not self.get_config('nick'): return if msg['action'] != "PRIVMSG": diff --git a/module/plugins/hooks/RestartFailed.py b/module/plugins/hooks/RestartFailed.py index 93add5a88..6c3388e3a 100644 --- a/module/plugins/hooks/RestartFailed.py +++ b/module/plugins/hooks/RestartFailed.py @@ -22,7 +22,7 @@ class RestartFailed(Addon): # def plugin_config_changed(self, plugin, name, value): # if name == "interval": # interval = value * 60 - # if self.MIN_CHECK_INTERVAL <= interval not is self.interval: + # if self.MIN_CHECK_INTERVAL <= interval is not self.interval: # self.pyload.scheduler.removeJob(self.cb) # self.interval = interval # self.init_periodical() diff --git a/module/plugins/hooks/UnSkipOnFail.py b/module/plugins/hooks/UnSkipOnFail.py index 5c2e89a7b..d467b8a01 100644 --- a/module/plugins/hooks/UnSkipOnFail.py +++ b/module/plugins/hooks/UnSkipOnFail.py @@ -61,7 +61,7 @@ class UnSkipOnFail(Addon): for package in queue: #: Check if package-folder equals pyfile's package folder - if package.folder not is pyfile.package().folder: + if package.folder is not pyfile.package().folder: continue #: Now get packaged data w/ files/links @@ -73,7 +73,7 @@ class UnSkipOnFail(Addon): #: Check if link name collides with pdata's name #: and at last check if it is not pyfile itself - if link.name is pyfile.name and link.fid not is pyfile.id: + if link.name is pyfile.name and link.fid is not pyfile.id: return link |