@@ -104,7 +104,7 @@ def setattr_hookspec_opts(func):
104
104
if historic and firstresult :
105
105
raise ValueError ("cannot have a historic firstresult hook" )
106
106
setattr (func , self .project_name + "_spec" ,
107
- dict (firstresult = firstresult , historic = historic ))
107
+ dict (firstresult = firstresult , historic = historic ))
108
108
return func
109
109
110
110
if function is not None :
@@ -150,8 +150,8 @@ def __call__(self, function=None, hookwrapper=False, optionalhook=False,
150
150
"""
151
151
def setattr_hookimpl_opts (func ):
152
152
setattr (func , self .project_name + "_impl" ,
153
- dict (hookwrapper = hookwrapper , optionalhook = optionalhook ,
154
- tryfirst = tryfirst , trylast = trylast ))
153
+ dict (hookwrapper = hookwrapper , optionalhook = optionalhook ,
154
+ tryfirst = tryfirst , trylast = trylast ))
155
155
return func
156
156
157
157
if function is None :
@@ -232,7 +232,7 @@ def get(self, name):
232
232
def _raise_wrapfail (wrap_controller , msg ):
233
233
co = wrap_controller .gi_code
234
234
raise RuntimeError ("wrap_controller at %r %s:%d %s" %
235
- (co .co_name , co .co_filename , co .co_firstlineno , msg ))
235
+ (co .co_name , co .co_filename , co .co_firstlineno , msg ))
236
236
237
237
238
238
def _wrapped_call (wrap_controller , func ):
@@ -279,6 +279,7 @@ def get_result(self):
279
279
raise ex [1 ].with_traceback (ex [2 ])
280
280
_reraise (* ex ) # noqa
281
281
282
+
282
283
if not _py3 :
283
284
exec ("""
284
285
def _reraise(cls, val, tb):
@@ -348,7 +349,7 @@ def register(self, plugin, name=None):
348
349
if self ._name2plugin .get (plugin_name , - 1 ) is None :
349
350
return # blocked plugin, return None to indicate no registration
350
351
raise ValueError ("Plugin already registered: %s=%s\n %s" %
351
- (plugin_name , plugin , self ._name2plugin ))
352
+ (plugin_name , plugin , self ._name2plugin ))
352
353
353
354
# XXX if an error happens we should make sure no state has been
354
355
# changed at point of return
@@ -484,7 +485,7 @@ def _verify_hook(self, hook, hookimpl):
484
485
"plugin definition: %s\n "
485
486
"available hookargs: %s" %
486
487
(hookimpl .plugin_name , hook .name , arg ,
487
- _formatdef (hookimpl .function ), ", " .join (hook .argnames )))
488
+ _formatdef (hookimpl .function ), ", " .join (hook .argnames )))
488
489
489
490
def check_pending (self ):
490
491
""" Verify that all hooks which have not been verified against
0 commit comments