Skip to content
Myr

update deprecation versions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent f991a89 · Browse files · 2 files+18 added−17 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+18 added−17 removed

  • other:+18 added−17 removed

2 files+18 added−17 removed

modified:src/flask/app.py+13 added-12 removed
1072 unmodified lines
1073 :attr:`secret_key` is set. Instead of overriding this method1074 we recommend replacing the :class:`session_interface`.10751076 .. deprecated: 1.01077 Will be removed in 1.1. Use ``session_interface.open_session``1078 instead.1077 Will be removed in 2.0. Use1078 ``session_interface.open_session`` instead.10791080 :param request: an instance of :attr:`request_class`.1081 """10821083 warnings.warn(1084 DeprecationWarning(1085 '"open_session" is deprecated and will be removed in 1.1. Use'1086 ' "session_interface.open_session" instead.'1085 '"open_session" is deprecated and will be removed in'1086 ' 2.0. Use "session_interface.open_session" instead.'1087 )1088 )1089 return self.session_interface.open_session(self, request)1090
2 unmodified lines
1093 implementation, check :meth:`open_session`. Instead of overriding this1094 method we recommend replacing the :class:`session_interface`.10951096 .. deprecated: 1.01097 Will be removed in 1.1. Use ``session_interface.save_session``1098 instead.1097 Will be removed in 2.0. Use1098 ``session_interface.save_session`` instead.10991100 :param session: the session to be saved (a1101 :class:`~werkzeug.contrib.securecookie.SecureCookie`1102 object)
1 unmodified line
1104 """11051106 warnings.warn(1107 DeprecationWarning(1108 '"save_session" is deprecated and will be removed in 1.1. Use'1109 ' "session_interface.save_session" instead.'1108 '"save_session" is deprecated and will be removed in'1109 ' 2.0. Use "session_interface.save_session" instead.'1110 )1111 )1112 return self.session_interface.save_session(self, session, response)1113
1 unmodified line
1115 """Creates a new instance of a missing session. Instead of overriding1116 this method we recommend replacing the :class:`session_interface`.11171118 .. deprecated: 1.01119 Will be removed in 1.1. Use ``session_interface.make_null_session``1120 instead.1119 Will be removed in 2.0. Use1120 ``session_interface.make_null_session`` instead.11211122 .. versionadded:: 0.71123 """11241125 warnings.warn(1126 DeprecationWarning(1127 '"make_null_session" is deprecated and will be removed in 1.1. Use'1128 ' "session_interface.make_null_session" instead.'1127 '"make_null_session" is deprecated and will be removed'1128 ' in 2.0. Use "session_interface.make_null_session"'1129 " instead."1130 )1131 )1132 return self.session_interface.make_null_session(self)1133
1334 unmodified lines
modified:src/flask/testing.py+5 added-5 removed
97 unmodified lines
98def make_test_environ_builder(*args, **kwargs):99 """Create a :class:`flask.testing.EnvironBuilder`.100101 .. deprecated: 1.1102 Will be removed in 1.2. Construct ``flask.testing.EnvironBuilder``103 directly instead.102 Will be removed in 2.0. Construct103 ``flask.testing.EnvironBuilder`` directly instead.104 """105 warnings.warn(106 DeprecationWarning(107 '"make_test_environ_builder()" is deprecated and will be removed '108 'in 1.2. Construct "flask.testing.EnvironBuilder" directly '109 "instead."107 '"make_test_environ_builder()" is deprecated and will be'108 ' removed in 2.0. Construct "flask.testing.EnvironBuilder"'109 " directly instead."110 )111 )112 return EnvironBuilder(*args, **kwargs)113
170 unmodified lines