From 1b43608b81c078b6ad6fa6b1409bdc34237d14dd Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 5 Feb 2011 15:35:04 -0500 Subject: for print space purposes, move return to same line as function definition --- pyramid/view.py | 3 +-- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3