From c5900a1adf8e868eca745225f3cf32218cdbbb23 Mon Sep 17 00:00:00 2001 From: ThiefMaster Date: Mon, 23 May 2016 14:42:42 +0200 Subject: [PATCH] s/1.0/0.11/ in versionadded/versionchanged markers closes #1817 --- docs/cli.rst | 2 +- docs/config.rst | 2 +- docs/errorhandling.rst | 2 +- flask/app.py | 18 +++++++++--------- flask/blueprints.py | 2 +- flask/config.py | 6 +++--- flask/json.py | 2 +- flask/sessions.py | 2 +- flask/wrappers.py | 2 +- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/cli.rst b/docs/cli.rst index 141176ce..d3269c57 100644 --- a/docs/cli.rst +++ b/docs/cli.rst @@ -3,7 +3,7 @@ Command Line Interface ====================== -.. versionadded:: 1.0 +.. versionadded:: 0.11 .. currentmodule:: flask diff --git a/docs/config.rst b/docs/config.rst index 1d9445d3..3039b3ea 100644 --- a/docs/config.rst +++ b/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`` diff --git a/docs/errorhandling.rst b/docs/errorhandling.rst index 1e6a771f..af593531 100644 --- a/docs/errorhandling.rst +++ b/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. diff --git a/flask/app.py b/flask/app.py index f4e953ea..416fcf08 100644 --- a/flask/app.py +++ b/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 diff --git a/flask/blueprints.py b/flask/blueprints.py index c0d47476..586a1b0b 100644 --- a/flask/blueprints.py +++ b/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)) diff --git a/flask/config.py b/flask/config.py index 6f643a99..426a23a2 100644 --- a/flask/config.py +++ b/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): diff --git a/flask/json.py b/flask/json.py index 2bd47902..b9ce4a08 100644 --- a/flask/json.py +++ b/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. diff --git a/flask/sessions.py b/flask/sessions.py index 48fd08fa..b9120712 100644 --- a/flask/sessions.py +++ b/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 diff --git a/flask/wrappers.py b/flask/wrappers.py index 9d611504..d1d7ba7d 100644 --- a/flask/wrappers.py +++ b/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':