consistent versions and deprecation messages

This commit is contained in:
David Lord 2021-04-15 15:58:24 -07:00
parent 16f51ef799
commit 8ab4967703
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
4 changed files with 26 additions and 23 deletions

View file

@ -98,7 +98,7 @@ def call_factory(script_info, app_factory, args=None, kwargs=None):
if "script_info" in sig.parameters:
warnings.warn(
"The 'script_info' argument is deprecated and will not be"
" passed to the app factory function in 2.1.",
" passed to the app factory function in Flask 2.1.",
DeprecationWarning,
)
kwargs["script_info"] = script_info
@ -110,7 +110,8 @@ def call_factory(script_info, app_factory, args=None, kwargs=None):
):
warnings.warn(
"Script info is deprecated and will not be passed as the"
" single argument to the app factory function in 2.1.",
" single argument to the app factory function in Flask"
" 2.1.",
DeprecationWarning,
)
args.append(script_info)