Easy spacing fixes, trailing stuff
Remove useless trailing \ Remove trailing spaces Add missing empty lines autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 . Diff quickly checked.
This commit is contained in:
parent
c21d1f7925
commit
7094931c92
231 changed files with 474 additions and 67 deletions
|
|
@ -43,13 +43,16 @@ class CallErrors(Exception):
|
|||
def __iter__(self):
|
||||
return self.errors.__iter__()
|
||||
|
||||
|
||||
class IResultsCondition(object):
|
||||
def is_valid(self, obj):
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
class ResultsConditionError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class BackendsCall(object):
|
||||
def __init__(self, backends, condition, function, *args, **kwargs):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ class ModuleLoadError(Exception):
|
|||
Exception.__init__(self, msg)
|
||||
self.module = module_name
|
||||
|
||||
|
||||
class Module(object):
|
||||
def __init__(self, package):
|
||||
self.logger = getLogger('backend')
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ class IScheduler(object):
|
|||
def want_stop(self):
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
class RepeatedTimer(_Timer):
|
||||
def run(self):
|
||||
while not self.finished.isSet():
|
||||
|
|
@ -55,6 +56,7 @@ class RepeatedTimer(_Timer):
|
|||
self.finished.wait(self.interval)
|
||||
self.finished.set()
|
||||
|
||||
|
||||
class Scheduler(IScheduler):
|
||||
def __init__(self):
|
||||
self.logger = getLogger('scheduler')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue