From b14f72bae4d7ccd077bda28e31da4e7dfe5f866c Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Fri, 18 Jan 2013 15:33:49 -0500 Subject: [PATCH] Resolve a few pep8 issues --- pecan/decorators.py | 4 ++-- pecan/tests/test_hooks.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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 ) ] )