8000 docstring/comment changes · alex-python/pyramid@87a85fa · GitHub
[go: up one dir, main page]

Skip to content

Commit 87a85fa

Browse files
committed
docstring/comment changes
1 parent 0b02c41 commit 87a85fa

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pyramid/view.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def init_mimetypes(mimetypes):
2828
# fallout.
2929
init_mimetypes(mimetypes)
3030

31-
# Nast BW compat hack: dont yet deprecate this (ever?)
31+
# Nasty BW compat hack: dont yet deprecate this (ever?)
3232
class static(static_view): # only subclass for purposes of autodoc
3333
__doc__ = static_view.__doc__
3434

@@ -235,7 +235,7 @@ def callback(context, name, ob):
235235
settings['_info'] = info.codeinfo
236236
return wrapped
237237

238-
bfg_view = view_config # permanent b/c
238+
bfg_view = view_config
239239

240240
deprecated(
241241
'bfg_view',
@@ -313,14 +313,14 @@ def __call__(self, context, request):
313313
For behavior like Django's ``APPEND_SLASH=True``, use this view as the
314314
:term:`Not Found view` in your application.
315315
316-
When this view is the Not Found view (indicating that no view was
317-
found), and any routes have been defined in the configuration of your
318-
application, if the value of the ``PATH_INFO`` WSGI environment
319-
variable does not already end in a slash, and if the value of
320-
``PATH_INFO`` *plus* a slash matches any route's path, do an HTTP
321-
redirect to the slash-appended PATH_INFO. Note that this will *lose*
322-
``POST`` data information (turning it into a GET), so you shouldn't
323-
rely on this to redirect POST requests.
316+
When this view is the Not Found view (indicating that no view was found), and
317+
any routes have been defined in the configuration of your application, if the
318+
value of the ``PATH_INFO`` WSGI environment variable does not already end in
319+
a slash, and if the value of ``PATH_INFO`` *plus* a slash matches any route's
320+
path, do an HTTP redirect to the slash-appended PATH_INFO. Note that this
321+
will *lose* ``POST`` data information (turning it into a GET), so you
322+
shouldn't rely on this to redirect POST requests. Note also that static
323+
routes are not considered when attempting to find a matching route.
324324
325325
Use the :meth:`pyramid.config.Configurator.add_view` method to configure this
326326
view as the Not Found view::

0 commit comments

Comments
 (0)
0