From d7254f602f1ba5140603e2651fb9e2950690a7a5 Mon Sep 17 00:00:00 2001 From: Stefano Date: Mon, 25 Nov 2013 03:27:49 -0800 Subject: Merge pull request #418 from vuolter/s/internal_PEP8cleanup Internal plugins code cleanup according to PEP8 guidelines (cherry picked from commit cfe3b21334f3eef319a667a477634c025e757fbf) Conflicts: module/plugins/internal/MultiHoster.py pyload/plugins/internal/CaptchaService.py --- pyload/plugins/internal/AbstractExtractor.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pyload/plugins/internal/AbstractExtractor.py') diff --git a/pyload/plugins/internal/AbstractExtractor.py b/pyload/plugins/internal/AbstractExtractor.py index 3ce76b6fa..90d6dd75e 100644 --- a/pyload/plugins/internal/AbstractExtractor.py +++ b/pyload/plugins/internal/AbstractExtractor.py @@ -1,15 +1,19 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- + class ArchiveError(Exception): pass + class CRCError(Exception): pass + class WrongPassword(Exception): pass + class AbtractExtractor: __version__ = "0.1" @@ -29,7 +33,6 @@ class AbtractExtractor: """ raise NotImplementedError - def __init__(self, m, file, out, fullpath, overwrite, excludefiles, renice): """Initialize extractor for specific file @@ -47,14 +50,12 @@ class AbtractExtractor: self.overwrite = overwrite self.excludefiles = excludefiles self.renice = renice - self.files = [] # Store extracted files here - + self.files = [] #: Store extracted files here def init(self): """ Initialize additional data structures """ pass - def checkArchive(self): """Check if password is needed. Raise ArchiveError if integrity is questionable. -- cgit v1.2.3