Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Add response callback to _invoke_one_plugin().

Change the response list argument to _invoke_one_plugin()
to a callback that accepts the response value.

Signed-off-by: Doug Hellmann <>
  • Loading branch information...
commit a9de3ecc559f1bd7c16b64728940e9215c4fcec3 1 parent 79bd21f
@dhellmann dhellmann authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 stevedore/
6 stevedore/
@@ -100,12 +100,12 @@ def func(ext, *args, **kwds):
raise RuntimeError('No %s extensions found' % self.namespace)
response = []
for e in self.extensions:
- self._invoke_one_plugin(response, func, e, args, kwds)
+ self._invoke_one_plugin(response.append, func, e, args, kwds)
return response
- def _invoke_one_plugin(self, response, func, e, args, kwds):
+ def _invoke_one_plugin(self, response_callback, func, e, args, kwds):
- response.append(func(e, *args, **kwds))
+ response_callback(func(e, *args, **kwds))
except Exception as err:
# FIXME: Provide an argument to control
# whether to ignore exceptions in each
Please sign in to comment.
Something went wrong with that request. Please try again.