Permalink
Browse files

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>
  • Loading branch information...
1 parent 502f552 commit 1ffbe0c6bb8cff9b7052e1b79f84f7a9e28ddb0b @dhellmann dhellmann committed Oct 29, 2012
Showing with 16 additions and 13 deletions.
  1. +2 −1 stevedore/driver.py
  2. +6 −5 stevedore/enabled.py
  3. +7 −6 stevedore/named.py
  4. +1 −1 tox.ini
View
@@ -31,7 +31,8 @@ def __init__(self, namespace, name,
invoke_kwds=invoke_kwds,
)
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:
raise RuntimeError('Multiple %r drivers found: %s' %
(namespace,
View
@@ -33,11 +33,12 @@ class EnabledExtensionManager(ExtensionManager):
def __init__(self, namespace, check_func, invoke_on_load=False,
invoke_args=(), invoke_kwds={}):
self.check_func = check_func
- super(EnabledExtensionManager, self).__init__(namespace,
- invoke_on_load=invoke_on_load,
- invoke_args=invoke_args,
- invoke_kwds=invoke_kwds,
- )
+ super(EnabledExtensionManager, self).__init__(
+ namespace,
+ invoke_on_load=invoke_on_load,
+ invoke_args=invoke_args,
+ invoke_kwds=invoke_kwds,
+ )
def _load_one_plugin(self, ep, invoke_on_load, invoke_args, invoke_kwds):
if not self.check_func(ep):
View
@@ -28,9 +28,10 @@ def __init__(self, namespace, names,
invoke_on_load=False, invoke_args=(), invoke_kwds={}):
def check(ep):
return ep.name in names
- super(NamedExtensionManager, self).__init__(namespace,
- check,
- invoke_on_load=invoke_on_load,
- invoke_args=invoke_args,
- invoke_kwds=invoke_kwds,
- )
+ super(NamedExtensionManager, self).__init__(
+ namespace,
+ check,
+ invoke_on_load=invoke_on_load,
+ invoke_args=invoke_args,
+ invoke_kwds=invoke_kwds,
+ )
View
@@ -10,4 +10,4 @@ deps =
[testenv:pep8]
deps = pep8
-commands = pep8 --repeat --ignore=E501,E123 --show-source stevedore setup.py
+commands = pep8 --repeat --ignore=E123 --show-source stevedore setup.py

0 comments on commit 1ffbe0c

Please sign in to comment.