consistent versions and deprecation messages
This commit is contained in:
parent
16f51ef799
commit
8ab4967703
4 changed files with 26 additions and 23 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue