summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Petrello <lists@ryanpetrello.com>2013-01-18 15:33:49 -0500
committerRyan Petrello <lists@ryanpetrello.com>2013-01-18 15:33:49 -0500
commitb14f72bae4d7ccd077bda28e31da4e7dfe5f866c (patch)
tree9854832bd4d77b9a788cb9b38c5de4ab1003f0ae
parent3a9cb397038897fd5e515769b84d510be8ee301d (diff)
downloadpecan-b14f72bae4d7ccd077bda28e31da4e7dfe5f866c.tar.gz
Resolve a few pep8 issues
-rw-r--r--pecan/decorators.py4
-rw-r--r--pecan/tests/test_hooks.py6
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
)
]
)