forked from orbit-oss/flask
0.11 => 1.0
This commit is contained in:
parent
08ac3aa4e3
commit
2446ca63a8
3 changed files with 3 additions and 3 deletions
|
|
@ -159,7 +159,7 @@ class Flask(_PackageBoundObject):
|
|||
|
||||
#: The class that is used for the Jinja environment.
|
||||
#:
|
||||
#: .. versionadded:: 0.11
|
||||
#: .. versionadded:: 1.0
|
||||
jinja_env_class = Environment
|
||||
|
||||
#: The class that is used for the :data:`~flask.g` instance.
|
||||
|
|
|
|||
|
|
@ -408,7 +408,7 @@ class Blueprint(_PackageBoundObject):
|
|||
application-wide function of the :class:`~flask.Flask` object but
|
||||
for error handlers limited to this blueprint.
|
||||
|
||||
.. versionadded:: 0.11
|
||||
.. versionadded:: 1.0
|
||||
"""
|
||||
self.record_once(lambda s: s.app._register_error_handler(
|
||||
self.name, code_or_exception, f))
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ class Request(RequestBase):
|
|||
is considered to include JSON data if the mimetype is
|
||||
:mimetype:`application/json` or :mimetype:`application/*+json`.
|
||||
|
||||
.. versionadded:: 0.11
|
||||
.. versionadded:: 1.0
|
||||
"""
|
||||
mt = self.mimetype
|
||||
if mt == 'application/json':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue