mirror of
https://github.com/python/cpython.git
synced 2025-10-12 09:53:19 +00:00
Fix docstring of warnings._deprecated
to show correct remove
value (#105178)
This commit is contained in:
parent
7d07e5891d
commit
201440e97a
1 changed files with 1 additions and 1 deletions
|
@ -517,7 +517,7 @@ def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_i
|
||||||
the current Python version or the same version but past the alpha.
|
the current Python version or the same version but past the alpha.
|
||||||
|
|
||||||
The *message* argument is formatted with *name* and *remove* as a Python
|
The *message* argument is formatted with *name* and *remove* as a Python
|
||||||
version (e.g. "3.11").
|
version tuple (e.g. (3, 11)).
|
||||||
|
|
||||||
"""
|
"""
|
||||||
remove_formatted = f"{remove[0]}.{remove[1]}"
|
remove_formatted = f"{remove[0]}.{remove[1]}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue