pep8 blank lines fixes
flake8 --select W391,E302,E301,E304 autopep8 can't fix W391 even though it claims it can. Fixed using a simple custom script.
This commit is contained in:
parent
be2c8bd789
commit
448c06d125
142 changed files with 249 additions and 25 deletions
|
|
@ -103,6 +103,7 @@ class ModulesLoader(object):
|
|||
"""
|
||||
Load modules.
|
||||
"""
|
||||
|
||||
def __init__(self, path, version=None):
|
||||
self.version = version
|
||||
self.path = path
|
||||
|
|
@ -162,10 +163,12 @@ class ModulesLoader(object):
|
|||
def get_module_path(self, module_name):
|
||||
return self.path
|
||||
|
||||
|
||||
class RepositoryModulesLoader(ModulesLoader):
|
||||
"""
|
||||
Load modules from repositories.
|
||||
"""
|
||||
|
||||
def __init__(self, repositories):
|
||||
super(RepositoryModulesLoader, self).__init__(repositories.modules_dir, repositories.version)
|
||||
self.repositories = repositories
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@ class WebNip(object):
|
|||
:param backend_name: name of backend we can't load
|
||||
:param exception: exception object
|
||||
"""
|
||||
|
||||
def __init__(self, backend_name, exception):
|
||||
Exception.__init__(self, unicode(exception))
|
||||
self.backend_name = backend_name
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ class ModuleInfo(object):
|
|||
"""
|
||||
Information about a module available on a repository.
|
||||
"""
|
||||
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
|
||||
|
|
@ -380,6 +381,7 @@ class IProgress(object):
|
|||
def __repr__(self):
|
||||
return '<%s>' % self.__class__.__name__
|
||||
|
||||
|
||||
class PrintProgress(IProgress):
|
||||
def progress(self, percent, message):
|
||||
print('=== [%3.0f%%] %s' % (percent*100, message))
|
||||
|
|
@ -450,6 +452,7 @@ class Repositories(object):
|
|||
def load_browser(self):
|
||||
from weboob.browser.browsers import Browser
|
||||
from weboob.browser.profiles import Weboob as WeboobProfile
|
||||
|
||||
class WeboobBrowser(Browser):
|
||||
PROFILE = WeboobProfile(self.version)
|
||||
if self.browser is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue