diff options
| author | Steve Piercy <web@stevepiercy.com> | 2016-07-19 15:17:33 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-19 15:17:33 -0700 |
| commit | 4841c104e5c717809bf7620ea653e5856595c845 (patch) | |
| tree | 67078331e44e3c5e5eefa17327b40cff6da84c98 /docs/narr/urldispatch.rst | |
| parent | 47b7855e0081fcac8b4cc71829b8193181939c2e (diff) | |
| parent | c898ddfe8d31718aa47fe697f8760dbc0ec79572 (diff) | |
| download | pyramid-4841c104e5c717809bf7620ea653e5856595c845.tar.gz pyramid-4841c104e5c717809bf7620ea653e5856595c845.tar.bz2 pyramid-4841c104e5c717809bf7620ea653e5856595c845.zip | |
Merge pull request #2711 from inklesspen/nongendered-example-language
Change gendered language in examples
Diffstat (limited to 'docs/narr/urldispatch.rst')
| -rw-r--r-- | docs/narr/urldispatch.rst | 6 |
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): |
