diff --git a/pecan/decorators.py b/pecan/decorators.py index 4f73ce5..be27df8 100644 --- a/pecan/decorators.py +++ b/pecan/decorators.py @@ -117,7 +117,7 @@ def after_commit(action): :param action: The callable to call after the commit is successfully issued. ''' - return after_action('commit', action) + return after_action('commit', action) def after_rollback(action): @@ -129,7 +129,7 @@ def after_rollback(action): :param action: The callable to call after the rollback is successfully issued. ''' - return after_action('rollback', action) + return after_action('rollback', action) def accept_noncanonical(func): diff --git a/pecan/tests/test_hooks.py b/pecan/tests/test_hooks.py index ab0faea..080b802 100644 --- a/pecan/tests/test_hooks.py +++ b/pecan/tests/test_hooks.py @@ -1082,7 +1082,7 @@ class TestRequestViewerHook(TestCase): RootController(), hooks=[ RequestViewerHook( - config={'items':['path']}, writer=_stdout + config={'items': ['path']}, writer=_stdout ) ] ) @@ -1117,7 +1117,7 @@ class TestRequestViewerHook(TestCase): RootController(), hooks=[ RequestViewerHook( - config={'blacklist':['/']}, writer=_stdout + config={'blacklist': ['/']}, writer=_stdout ) ] ) @@ -1144,7 +1144,7 @@ class TestRequestViewerHook(TestCase): RootController(), hooks=[ RequestViewerHook( - config={'items':['date']}, writer=_stdout + config={'items': ['date']}, writer=_stdout ) ] )