@@ -66,7 +66,7 @@ def deprecate_kwarg(old_arg_name, new_arg_name, mapping=None, stacklevel=2): |
|
|
66 |
66 |
old_arg_name : str |
67 |
67 |
Name of argument in function to deprecate |
68 |
68 |
new_arg_name : str | None |
69 |
|
- Name of preferred argument in function. Use none to raise warning that |
|
69 |
+ Name of preferred argument in function. Use None to raise warning that |
70 |
70 |
``old_arg_name`` keyword is deprecated. |
71 |
71 |
mapping : dict or callable |
72 |
72 |
If mapping is present, use it to translate old arguments to |
@@ -111,7 +111,8 @@ def wrapper(*args, **kwargs): |
|
|
111 |
111 |
|
112 |
112 |
if new_arg_name is None and old_arg_value is not None: |
113 |
113 |
msg = ( |
114 |
|
-"the '{old_name}' keyword is no longer supported" |
|
114 |
+"the '{old_name}' keyword is deprecated and will be" |
|
115 |
+"removed in a future version" |
115 |
116 |
"please takes steps to stop use of '{old_name}'" |
116 |
117 |
).format(old_name=old_arg_name) |
117 |
118 |
warnings.warn(msg, FutureWarning, stacklevel=stacklevel) |