Fix line lengths for pep8
Re-enable the line limit checking in pep8 and then fix the issues with modules that had long lines. Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
This commit is contained in:
parent
502f552849
commit
1ffbe0c6bb
@ -31,7 +31,8 @@ class DriverManager(NamedExtensionManager):
|
|||||||
invoke_kwds=invoke_kwds,
|
invoke_kwds=invoke_kwds,
|
||||||
)
|
)
|
||||||
if not self.extensions:
|
if not self.extensions:
|
||||||
raise RuntimeError('No %r driver found, looking for %r' % (namespace, name))
|
raise RuntimeError('No %r driver found, looking for %r' %
|
||||||
|
(namespace, name))
|
||||||
if len(self.extensions) > 1:
|
if len(self.extensions) > 1:
|
||||||
raise RuntimeError('Multiple %r drivers found: %s' %
|
raise RuntimeError('Multiple %r drivers found: %s' %
|
||||||
(namespace,
|
(namespace,
|
||||||
|
@ -33,11 +33,12 @@ class EnabledExtensionManager(ExtensionManager):
|
|||||||
def __init__(self, namespace, check_func, invoke_on_load=False,
|
def __init__(self, namespace, check_func, invoke_on_load=False,
|
||||||
invoke_args=(), invoke_kwds={}):
|
invoke_args=(), invoke_kwds={}):
|
||||||
self.check_func = check_func
|
self.check_func = check_func
|
||||||
super(EnabledExtensionManager, self).__init__(namespace,
|
super(EnabledExtensionManager, self).__init__(
|
||||||
invoke_on_load=invoke_on_load,
|
namespace,
|
||||||
invoke_args=invoke_args,
|
invoke_on_load=invoke_on_load,
|
||||||
invoke_kwds=invoke_kwds,
|
invoke_args=invoke_args,
|
||||||
)
|
invoke_kwds=invoke_kwds,
|
||||||
|
)
|
||||||
|
|
||||||
def _load_one_plugin(self, ep, invoke_on_load, invoke_args, invoke_kwds):
|
def _load_one_plugin(self, ep, invoke_on_load, invoke_args, invoke_kwds):
|
||||||
if not self.check_func(ep):
|
if not self.check_func(ep):
|
||||||
|
@ -28,9 +28,10 @@ class NamedExtensionManager(EnabledExtensionManager):
|
|||||||
invoke_on_load=False, invoke_args=(), invoke_kwds={}):
|
invoke_on_load=False, invoke_args=(), invoke_kwds={}):
|
||||||
def check(ep):
|
def check(ep):
|
||||||
return ep.name in names
|
return ep.name in names
|
||||||
super(NamedExtensionManager, self).__init__(namespace,
|
super(NamedExtensionManager, self).__init__(
|
||||||
check,
|
namespace,
|
||||||
invoke_on_load=invoke_on_load,
|
check,
|
||||||
invoke_args=invoke_args,
|
invoke_on_load=invoke_on_load,
|
||||||
invoke_kwds=invoke_kwds,
|
invoke_args=invoke_args,
|
||||||
)
|
invoke_kwds=invoke_kwds,
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user