summaryrefslogtreecommitdiff
path: root/docs/narr/urldispatch.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2016-09-14 16:09:42 -0400
committerChris McDonough <chrism@plope.com>2016-09-14 16:09:42 -0400
commit85bd2b8187c39e44285983261a74aa815f2b19ed (patch)
tree4bc2269119fbe03d1fa54171148ff0cc5d88fd93 /docs/narr/urldispatch.rst
parentd350714a917b1a06dd4be6092e7b3da64771a4af (diff)
parent4acd85dc98fb2a43eae54d2116cc4bf383157269 (diff)
downloadpyramid-85bd2b8187c39e44285983261a74aa815f2b19ed.tar.gz
pyramid-85bd2b8187c39e44285983261a74aa815f2b19ed.tar.bz2
pyramid-85bd2b8187c39e44285983261a74aa815f2b19ed.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/narr/urldispatch.rst')
-rw-r--r--docs/narr/urldispatch.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst
index 7d37c04df..9ac01e24a 100644
--- a/docs/narr/urldispatch.rst
+++ b/docs/narr/urldispatch.rst
@@ -850,7 +850,7 @@ application:
from pyramid.httpexceptions import HTTPNotFound
def notfound(request):
- return HTTPNotFound('Not found, bro.')
+ return HTTPNotFound()
def no_slash(request):
return Response('No slash')
@@ -871,7 +871,7 @@ If a request enters the application with the ``PATH_INFO`` value of
However, if a request enters the application with the ``PATH_INFO`` value of
``/no_slash/``, *no* route will match, and the slash-appending not found view
will not find a matching route with an appended slash. As a result, the
-``notfound`` view will be called and it will return a "Not found, bro." body.
+``notfound`` view will be called and it will return a "Not found" body.
If a request enters the application with the ``PATH_INFO`` value of
``/has_slash/``, the second route will match. If a request enters the
@@ -892,7 +892,7 @@ exactly the same job:
@notfound_view_config(append_slash=True)
def notfound(request):
- return HTTPNotFound('Not found, bro.')
+ return HTTPNotFound()
@view_config(route_name='noslash')
def no_slash(request):