Browse Source

0.11 => 1.0

pull/1275/merge
Markus Unterwaditzer 10 years ago
parent
commit
2446ca63a8
  1. 2
      flask/app.py
  2. 2
      flask/blueprints.py
  3. 2
      flask/wrappers.py

2
flask/app.py

@ -159,7 +159,7 @@ class Flask(_PackageBoundObject):
#: The class that is used for the Jinja environment. #: The class that is used for the Jinja environment.
#: #:
#: .. versionadded:: 0.11 #: .. versionadded:: 1.0
jinja_env_class = Environment jinja_env_class = Environment
#: The class that is used for the :data:`~flask.g` instance. #: The class that is used for the :data:`~flask.g` instance.

2
flask/blueprints.py

@ -408,7 +408,7 @@ class Blueprint(_PackageBoundObject):
application-wide function of the :class:`~flask.Flask` object but application-wide function of the :class:`~flask.Flask` object but
for error handlers limited to this blueprint. for error handlers limited to this blueprint.
.. versionadded:: 0.11 .. versionadded:: 1.0
""" """
self.record_once(lambda s: s.app._register_error_handler( self.record_once(lambda s: s.app._register_error_handler(
self.name, code_or_exception, f)) self.name, code_or_exception, f))

2
flask/wrappers.py

@ -113,7 +113,7 @@ class Request(RequestBase):
is considered to include JSON data if the mimetype is is considered to include JSON data if the mimetype is
:mimetype:`application/json` or :mimetype:`application/*+json`. :mimetype:`application/json` or :mimetype:`application/*+json`.
.. versionadded:: 0.11 .. versionadded:: 1.0
""" """
mt = self.mimetype mt = self.mimetype
if mt == 'application/json': if mt == 'application/json':

Loading…
Cancel
Save