Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

import HTTPNotFound; torturous spelling to not increase page length

  • Loading branch information...
commit 1e3082082f90680de629eed83dde1e2294bae47a 1 parent a51571c
@mcdonc mcdonc authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.