Browse files

support inline callbacks in hooks (refs #25)

  • Loading branch information...
1 parent 1318050 commit f476e757e35e387799e6ac4b38eb94dff0632031 @jerico-dev jerico-dev committed Jul 21, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 freshen/stepregistry.py
View
4 freshen/stepregistry.py
@@ -71,10 +71,10 @@ def __repr__(self):
return "<Hook: @%s %s(...)>" % (self.cb_type, self.func.func_name)
def run(self, scenario):
- self.func(scenario)
+ return self.func(scenario)
def __call__(self, *args, **kwargs):
- self.func(*args, **kwargs)
+ return self.func(*args, **kwargs)
class TransformImpl(object):

0 comments on commit f476e75

Please sign in to comment.