diff options
author | Stefano <l.stickell@yahoo.it> | 2014-04-18 17:11:19 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-04-18 17:11:19 +0200 |
commit | b63b9f10b588a5d643898c1ccdb29b0288bac62d (patch) | |
tree | fe3b9202a44ef11922613e31784f06f3c3b378f3 /module | |
parent | Fixed PEP8 violations (diff) | |
download | pyload-b63b9f10b588a5d643898c1ccdb29b0288bac62d.tar.xz |
Fixed PEP8 violations
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/internal/AbstractExtractor.py | 1 | ||||
-rw-r--r-- | module/plugins/internal/DeadHoster.py | 1 | ||||
-rw-r--r-- | module/plugins/internal/MultiHoster.py | 2 | ||||
-rw-r--r-- | module/plugins/internal/UnRar.py | 4 |
4 files changed, 5 insertions, 3 deletions
diff --git a/module/plugins/internal/AbstractExtractor.py b/module/plugins/internal/AbstractExtractor.py index c882ff2b8..0ecc11f06 100644 --- a/module/plugins/internal/AbstractExtractor.py +++ b/module/plugins/internal/AbstractExtractor.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- + class ArchiveError(Exception): pass diff --git a/module/plugins/internal/DeadHoster.py b/module/plugins/internal/DeadHoster.py index 20088daa8..201835e2b 100644 --- a/module/plugins/internal/DeadHoster.py +++ b/module/plugins/internal/DeadHoster.py @@ -2,6 +2,7 @@ from module.plugins.Hoster import Hoster as _Hoster + def create_getInfo(plugin): def getInfo(urls): yield [('#N/A: ' + url, 0, 1, url) for url in urls] diff --git a/module/plugins/internal/MultiHoster.py b/module/plugins/internal/MultiHoster.py index 79806a772..97f3a5996 100644 --- a/module/plugins/internal/MultiHoster.py +++ b/module/plugins/internal/MultiHoster.py @@ -150,7 +150,7 @@ class MultiHoster(Hook): # create new regexp regexp = r".*(%s).*" % "|".join([x.replace(".", "\\.") for x in self.new_supported]) - if hasattr(klass, "__pattern__") and isinstance(klass.__pattern__, basestring) and '://' in klass.__pattern__: + if hasattr(klass, "__pattern__") and isinstance(klass.__pattern__, basestring) and '://' in klass.__pattern__: regexp = r"%s|%s" % (klass.__pattern__, regexp) self.logDebug("Regexp: %s" % regexp) diff --git a/module/plugins/internal/UnRar.py b/module/plugins/internal/UnRar.py index 74523d35a..04cb0acb2 100644 --- a/module/plugins/internal/UnRar.py +++ b/module/plugins/internal/UnRar.py @@ -94,12 +94,12 @@ class UnRar(AbtractExtractor): # output only used to check if passworded files are present if self.re_version.search(out): - for attr, size, name in self.re_filelist5.findall(out): + for attr, size, name in self.re_filelist5.findall(out): if attr.startswith("*"): self.passwordProtected = True return True else: - for name, size, packed in self.re_filelist.findall(out): + for name, size, packed in self.re_filelist.findall(out): if name.startswith("*"): self.passwordProtected = True return True |