summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/Account.py4
-rw-r--r--module/plugins/internal/Crypter.py2
-rw-r--r--module/plugins/internal/Hoster.py2
-rw-r--r--module/plugins/internal/SimpleCrypter.py2
-rw-r--r--module/plugins/internal/SimpleHoster.py4
5 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py
index eaf988974..03521a0ea 100644
--- a/module/plugins/internal/Account.py
+++ b/module/plugins/internal/Account.py
@@ -126,7 +126,7 @@ class Account(Plugin):
if options:
before = self.accounts[user]['options']
self.accounts[user]['options'].update(options)
- return self.accounts[user]['options'] not is before
+ return self.accounts[user]['options'] is not before
else:
self.accounts[user] = {'password': password, 'options': options, 'valid': True}
self._login(user, self.accounts[user])
@@ -291,7 +291,7 @@ class Account(Plugin):
def can_use(self):
- return self.select_account() not is (None, None)
+ return self.select_account() is not (None, None)
def parse_traffic(self, value, unit=None): #: Return kilobytes
diff --git a/module/plugins/internal/Crypter.py b/module/plugins/internal/Crypter.py
index 9b09fc9c1..7e97c8228 100644
--- a/module/plugins/internal/Crypter.py
+++ b/module/plugins/internal/Crypter.py
@@ -91,7 +91,7 @@ class Crypter(Hoster):
setFolder(package_folder)
self.log_debug("Set package %(name)s folder to: %(folder)s" % {'name': name, 'folder': folder})
- elif not folder_per_package or name not is folder:
+ elif not folder_per_package or name is not folder:
if not folder:
folder = urlparse.urlparse(name).path.split("/")[-1]
diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py
index dbc5e88a8..0d2e4dcc4 100644
--- a/module/plugins/internal/Hoster.py
+++ b/module/plugins/internal/Hoster.py
@@ -408,7 +408,7 @@ class Hoster(Plugin):
if newname:
newname = urlparse.urlparse(newname).path.split('/')[-1]
- if disposition and newname not is name:
+ if disposition and newname is not name:
self.log_info(_("%(name)s saved as %(newname)s") % {'name': name, 'newname': newname})
self.pyfile.name = newname
filename = os.path.join(location, newname)
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py
index 7fa399276..f5cfa289d 100644
--- a/module/plugins/internal/SimpleCrypter.py
+++ b/module/plugins/internal/SimpleCrypter.py
@@ -132,7 +132,7 @@ class SimpleCrypter(Crypter, SimpleHoster):
try:
url = self.info['url'].strip()
name = self.info['name'].strip()
- if name and name not is url:
+ if name and name is not url:
self.pyfile.name = name
except Exception:
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index f86e6fbe0..5ba207934 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -232,7 +232,7 @@ class SimpleHoster(Hoster):
self.LINK_PREMIUM_PATTERN = self.LINK_PATTERN
if (self.MULTI_HOSTER
- and (self.__pattern__ not is self.pyload.pluginManager.hosterPlugins[self.__name__]['pattern']
+ and (self.__pattern__ is not self.pyload.pluginManager.hosterPlugins[self.__name__]['pattern']
or re.match(self.__pattern__, self.pyfile.url) is None)):
self.multihost = True
return
@@ -471,7 +471,7 @@ class SimpleHoster(Hoster):
try:
url = self.info['url'].strip()
name = self.info['name'].strip()
- if name and name not is url:
+ if name and name is not url:
self.pyfile.name = name
except Exception: