forked from orbit-oss/flask
Merge pull request #2393 from JohnMoutafis/2385-remove-deprecated-code
Remove deprecated code from app.py
This commit is contained in:
commit
c5d3f806d7
1 changed files with 0 additions and 21 deletions
21
flask/app.py
21
flask/app.py
|
|
@ -188,18 +188,6 @@ class Flask(_PackageBoundObject):
|
||||||
#: .. versionadded:: 0.10
|
#: .. versionadded:: 0.10
|
||||||
app_ctx_globals_class = _AppCtxGlobals
|
app_ctx_globals_class = _AppCtxGlobals
|
||||||
|
|
||||||
# Backwards compatibility support
|
|
||||||
def _get_request_globals_class(self):
|
|
||||||
return self.app_ctx_globals_class
|
|
||||||
def _set_request_globals_class(self, value):
|
|
||||||
from warnings import warn
|
|
||||||
warn(DeprecationWarning('request_globals_class attribute is now '
|
|
||||||
'called app_ctx_globals_class'))
|
|
||||||
self.app_ctx_globals_class = value
|
|
||||||
request_globals_class = property(_get_request_globals_class,
|
|
||||||
_set_request_globals_class)
|
|
||||||
del _get_request_globals_class, _set_request_globals_class
|
|
||||||
|
|
||||||
#: The class that is used for the ``config`` attribute of this app.
|
#: The class that is used for the ``config`` attribute of this app.
|
||||||
#: Defaults to :class:`~flask.Config`.
|
#: Defaults to :class:`~flask.Config`.
|
||||||
#:
|
#:
|
||||||
|
|
@ -772,15 +760,6 @@ class Flask(_PackageBoundObject):
|
||||||
"""
|
"""
|
||||||
return DispatchingJinjaLoader(self)
|
return DispatchingJinjaLoader(self)
|
||||||
|
|
||||||
def init_jinja_globals(self):
|
|
||||||
"""Deprecated. Used to initialize the Jinja2 globals.
|
|
||||||
|
|
||||||
.. versionadded:: 0.5
|
|
||||||
.. versionchanged:: 0.7
|
|
||||||
This method is deprecated with 0.7. Override
|
|
||||||
:meth:`create_jinja_environment` instead.
|
|
||||||
"""
|
|
||||||
|
|
||||||
def select_jinja_autoescape(self, filename):
|
def select_jinja_autoescape(self, filename):
|
||||||
"""Returns ``True`` if autoescaping should be active for the given
|
"""Returns ``True`` if autoescaping should be active for the given
|
||||||
template name. If no template name is given, returns `True`.
|
template name. If no template name is given, returns `True`.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue