Skip to content

Commit d5308bb

Browse files
committed
Merge pull request pallets#1716 from lord63-forks/fix-typo
Fix typo
2 parents 22270d0 + 07fdd19 commit d5308bb

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

docs/reqcontext.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ find a piece of code that looks very much like this::
6969
with self.request_context(environ):
7070
try:
7171
response = self.full_dispatch_request()
72-
except Exception, e:
72+
except Exception as e:
7373
response = self.make_response(self.handle_exception(e))
7474
return response(environ, start_response)
7575

flask/app.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,8 @@ def __init__(self, import_name, static_path=None, static_url_path=None,
421421
#: A dictionary with lists of functions that should be called after
422422
#: each request. The key of the dictionary is the name of the blueprint
423423
#: this function is active for, ``None`` for all requests. This can for
424-
#: example be used to open database connections or getting hold of the
425-
#: currently logged in user. To register a function here, use the
426-
#: :meth:`after_request` decorator.
424+
#: example be used to close database connections. To register a function
425+
#: here, use the :meth:`after_request` decorator.
427426
self.after_request_funcs = {}
428427

429428
#: A dictionary with lists of functions that are called after
@@ -791,8 +790,7 @@ def run(self, host=None, port=None, debug=None, **options):
791790
792791
It is not recommended to use this function for development with
793792
automatic reloading as this is badly supported. Instead you should
794-
be using the :command:`flask` command line script's ``runserver``
795-
support.
793+
be using the :command:`flask` command line script's ``run`` support.
796794
797795
.. admonition:: Keep in Mind
798796

flask/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def get_namespace(self, namespace, lowercase=True, trim_namespace=True):
222222
app.config['IMAGE_STORE_BASE_URL'] = 'http://img.website.com'
223223
image_store_config = app.config.get_namespace('IMAGE_STORE_')
224224
225-
The resulting dictionary `image_store` would look like::
225+
The resulting dictionary `image_store_config` would look like::
226226
227227
{
228228
'type': 'fs',

0 commit comments

Comments
 (0)