summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-02-05 15:35:04 -0500
committerChris McDonough <chrism@plope.com>2011-02-05 15:35:04 -0500
commit1b43608b81c078b6ad6fa6b1409bdc34237d14dd (patch)
tree91f091dce143fdad67de5053fb719a1487d10c92
parent893d86cad70dc50814e8f26c3f96127d9480f120 (diff)
downloadpyramid-1b43608b81c078b6ad6fa6b1409bdc34237d14dd.tar.gz
pyramid-1b43608b81c078b6ad6fa6b1409bdc34237d14dd.tar.bz2
pyramid-1b43608b81c078b6ad6fa6b1409bdc34237d14dd.zip
for print space purposes, move return to same line as function definition
-rw-r--r--pyramid/view.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pyramid/view.py b/pyramid/view.py
index 7f1e03199..c14a587ea 100644
--- a/pyramid/view.py
+++ b/pyramid/view.py
@@ -271,8 +271,7 @@ class AppendSlashNotFoundViewFactory(object):
from pyramid.view import AppendSlashNotFoundViewFactory
from pyramid.httpexceptions import HTTPNotFound
- def notfound_view(context, request):
- return HTTPNotFound('It aint there, stop trying!')
+ def notfound_view(context, request): return HTTPNotFound('nope')
custom_append_slash = AppendSlashNotFoundViewFactory(notfound_view)
config.add_view(custom_append_slash, context=NotFound)