Skip to content
Browse files

import HTTPNotFound; torturous spelling to not increase page length

  • Loading branch information...
1 parent a51571c commit 1e3082082f90680de629eed83dde1e2294bae47a @mcdonc mcdonc committed Feb 5, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 pyramid/
3 pyramid/
@@ -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)

0 comments on commit 1e30820

Please sign in to comment.
Something went wrong with that request. Please try again.