mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
Issue #24199: Add stacklevel to deprecation warning call.
This commit is contained in:
parent
cebfdac32c
commit
c37c49fd56
1 changed files with 1 additions and 1 deletions
|
|
@ -7,6 +7,6 @@
|
|||
"""
|
||||
# Kept for now only for possible existing extension use
|
||||
import warnings as w
|
||||
w.warn(__doc__, DeprecationWarning)
|
||||
w.warn(__doc__, DeprecationWarning, stacklevel=2)
|
||||
from sys import version
|
||||
IDLE_VERSION = version[:version.index(' ')]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue