summaryrefslogtreecommitdiff
path: root/docs/narr/hooks.rst
diff options
context:
space:
mode:
authorJon Davidson <jon@inklesspen.com>2016-07-18 13:05:40 -1000
committerJon Davidson <jon@inklesspen.com>2016-07-19 12:07:16 -1000
commitc898ddfe8d31718aa47fe697f8760dbc0ec79572 (patch)
tree67078331e44e3c5e5eefa17327b40cff6da84c98 /docs/narr/hooks.rst
parent47b7855e0081fcac8b4cc71829b8193181939c2e (diff)
downloadpyramid-c898ddfe8d31718aa47fe697f8760dbc0ec79572.tar.gz
pyramid-c898ddfe8d31718aa47fe697f8760dbc0ec79572.tar.bz2
pyramid-c898ddfe8d31718aa47fe697f8760dbc0ec79572.zip
Change gendered language in examples
Some examples in documentation use "dude" and "bro" -- for example, "Not found, bro". While playful, this language can make some people uncomfortable. I have changed the wording to something equally playful that doesn't make assumptions about the reader's gender.
Diffstat (limited to 'docs/narr/hooks.rst')
-rw-r--r--docs/narr/hooks.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst
index 49ef29d3f..c54b213f1 100644
--- a/docs/narr/hooks.rst
+++ b/docs/narr/hooks.rst
@@ -26,7 +26,7 @@ Not Found View by using the
:linenos:
def notfound(request):
- return Response('Not Found, dude', status='404 Not Found')
+ return Response('Not Found', status='404 Not Found')
def main(globals, **settings):
config = Configurator()
@@ -45,7 +45,7 @@ and a :term:`scan`, you can replace the Not Found View by using the
@notfound_view_config()
def notfound(request):
- return Response('Not Found, dude', status='404 Not Found')
+ return Response('Not Found', status='404 Not Found')
def main(globals, **settings):
config = Configurator()
@@ -67,11 +67,11 @@ Views can carry predicates limiting their applicability. For example:
@notfound_view_config(request_method='GET')
def notfound_get(request):
- return Response('Not Found during GET, dude', status='404 Not Found')
+ return Response('Not Found during GET', status='404 Not Found')
@notfound_view_config(request_method='POST')
def notfound_post(request):
- return Response('Not Found during POST, dude', status='404 Not Found')
+ return Response('Not Found during POST', status='404 Not Found')
def main(globals, **settings):
config = Configurator()