Skip to content
This repository
Browse code

import HTTPNotFound; torturous spelling to not increase page length

  • Loading branch information...
commit 1e3082082f90680de629eed83dde1e2294bae47a 1 parent a51571c
Chris McDonough authored February 05, 2011

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  pyramid/view.py
3  pyramid/view.py
@@ -271,8 +271,7 @@ class AppendSlashNotFoundViewFactory(object):
271 271
        from pyramid.view import AppendSlashNotFoundViewFactory
272 272
        from pyramid.httpexceptions import HTTPNotFound
273 273
 
274  
-       def notfound_view(context, request):
275  
-           return HTTPNotFound('It aint there, stop trying!')
  274
+       def notfound_view(context, request): return HTTPNotFound('nope')
276 275
 
277 276
        custom_append_slash = AppendSlashNotFoundViewFactory(notfound_view)
278 277
        config.add_view(custom_append_slash, context=NotFound)

0 notes on commit 1e30820

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