Browse Source

s/1.0/0.11/ in versionadded/versionchanged markers

closes #1817
pull/1818/head
ThiefMaster 9 years ago
parent
commit
c5900a1adf
  1. 2
      docs/cli.rst
  2. 2
      docs/config.rst
  3. 2
      docs/errorhandling.rst
  4. 18
      flask/app.py
  5. 2
      flask/blueprints.py
  6. 6
      flask/config.py
  7. 2
      flask/json.py
  8. 2
      flask/sessions.py
  9. 2
      flask/wrappers.py

2
docs/cli.rst

@ -3,7 +3,7 @@
Command Line Interface
======================
.. versionadded:: 1.0
.. versionadded:: 0.11
.. currentmodule:: flask

2
docs/config.rst

@ -241,7 +241,7 @@ The following configuration values are used internally by Flask:
.. versionadded:: 0.10
``JSON_AS_ASCII``, ``JSON_SORT_KEYS``, ``JSONIFY_PRETTYPRINT_REGULAR``
.. versionadded:: 1.0
.. versionadded:: 0.11
``SESSION_REFRESH_EACH_REQUEST``, ``TEMPLATES_AUTO_RELOAD``,
``LOGGER_HANDLER_POLICY``, ``EXPLAIN_TEMPLATE_LOADING``

2
docs/errorhandling.rst

@ -63,7 +63,7 @@ You are however not limited to :exc:`~werkzeug.exceptions.HTTPException`
or HTTP status codes but can register a handler for every exception class you
like.
.. versionchanged:: 1.0
.. versionchanged:: 0.11
Errorhandlers are now prioritized by specificity of the exception classes
they are registered for instead of the order they are registered in.

18
flask/app.py

@ -120,7 +120,7 @@ class Flask(_PackageBoundObject):
The `instance_path` and `instance_relative_config` parameters were
added.
.. versionadded:: 1.0
.. versionadded:: 0.11
The `root_path` parameter was added.
:param import_name: the name of the application package
@ -159,7 +159,7 @@ class Flask(_PackageBoundObject):
#: The class that is used for the Jinja environment.
#:
#: .. versionadded:: 1.0
#: .. versionadded:: 0.11
jinja_environment = Environment
#: The class that is used for the :data:`~flask.g` instance.
@ -198,7 +198,7 @@ class Flask(_PackageBoundObject):
#: 1. Default values for certain config options.
#: 2. Access to config values through attributes in addition to keys.
#:
#: .. versionadded:: 1.0
#: .. versionadded:: 0.11
config_class = Config
#: The debug flag. Set this to ``True`` to enable debugging of the
@ -481,7 +481,7 @@ class Flask(_PackageBoundObject):
#: A list of shell context processor functions that should be run
#: when a shell context is created.
#:
#: .. versionadded:: 1.0
#: .. versionadded:: 0.11
self.shell_context_processors = []
#: all the attached blueprints in a dictionary by name. Blueprints
@ -683,7 +683,7 @@ class Flask(_PackageBoundObject):
this function to customize the behavior.
.. versionadded:: 0.5
.. versionchanged:: 1.0
.. versionchanged:: 0.11
``Environment.auto_reload`` set in accordance with
``TEMPLATES_AUTO_RELOAD`` configuration option.
"""
@ -772,7 +772,7 @@ class Flask(_PackageBoundObject):
application. This runs all the registered shell context
processors.
.. versionadded:: 1.0
.. versionadded:: 0.11
"""
rv = {'app': self, 'g': g}
for processor in self.shell_context_processors:
@ -893,7 +893,7 @@ class Flask(_PackageBoundObject):
to override the client to be used by setting the
:attr:`test_client_class` attribute.
.. versionchanged:: 1.0
.. versionchanged:: 0.11
Added `**kwargs` to support passing additional keyword arguments to
the constructor of :attr:`test_client_class`.
"""
@ -969,7 +969,7 @@ class Flask(_PackageBoundObject):
def iter_blueprints(self):
"""Iterates over all blueprints by the order they were registered.
.. versionadded:: 1.0
.. versionadded:: 0.11
"""
return iter(self._blueprint_order)
@ -1418,7 +1418,7 @@ class Flask(_PackageBoundObject):
def shell_context_processor(self, f):
"""Registers a shell context processor function.
.. versionadded:: 1.0
.. versionadded:: 0.11
"""
self.shell_context_processors.append(f)
return f

2
flask/blueprints.py

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

6
flask/config.py

@ -176,7 +176,7 @@ class Config(dict):
:param silent: set to ``True`` if you want silent failure for missing
files.
.. versionadded:: 1.0
.. versionadded:: 0.11
"""
filename = os.path.join(self.root_path, filename)
@ -194,7 +194,7 @@ class Config(dict):
"""Updates the config like :meth:`update` ignoring items with non-upper
keys.
.. versionadded:: 1.0
.. versionadded:: 0.11
"""
mappings = []
if len(mapping) == 1:
@ -239,7 +239,7 @@ class Config(dict):
:param trim_namespace: a flag indicating if the keys of the resulting
dictionary should not include the namespace
.. versionadded:: 1.0
.. versionadded:: 0.11
"""
rv = {}
for k, v in iteritems(self):

2
flask/json.py

@ -235,7 +235,7 @@ def jsonify(*args, **kwargs):
}
.. versionchanged:: 1.0
.. versionchanged:: 0.11
Added support for serializing top-level arrays. This introduces a
security risk in ancient browsers. See :ref:`json-security` for details.

2
flask/sessions.py

@ -263,7 +263,7 @@ class SessionInterface(object):
This check is usually skipped if sessions get deleted.
.. versionadded:: 1.0
.. versionadded:: 0.11
"""
if session.modified:
return True

2
flask/wrappers.py

@ -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:: 1.0
.. versionadded:: 0.11
"""
mt = self.mimetype
if mt == 'application/json':

Loading…
Cancel
Save