From 75327c0a8500ca2e90e974dfda2ab8e170de65ff Mon Sep 17 00:00:00 2001 From: John Moutafis Date: Fri, 23 Jun 2017 17:53:38 +0300 Subject: [PATCH 1/2] Remove deprecated init_jinja_globals. --- flask/app.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/flask/app.py b/flask/app.py index 04c39547..e2f8604a 100644 --- a/flask/app.py +++ b/flask/app.py @@ -772,15 +772,6 @@ class Flask(_PackageBoundObject): """ 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): """Returns ``True`` if autoescaping should be active for the given template name. If no template name is given, returns `True`. From e9386a72738bfc77cbfbce6c648f8b638dd7b836 Mon Sep 17 00:00:00 2001 From: John Moutafis Date: Mon, 26 Jun 2017 11:48:29 +0300 Subject: [PATCH 2/2] Remove deprecated request_globals_class _get and _set methods. --- flask/app.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/flask/app.py b/flask/app.py index e2f8604a..a5d7cfaf 100644 --- a/flask/app.py +++ b/flask/app.py @@ -188,18 +188,6 @@ class Flask(_PackageBoundObject): #: .. versionadded:: 0.10 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. #: Defaults to :class:`~flask.Config`. #: