Issue #24199: Add stacklevel to deprecation warning call.
This commit is contained in:
parent
cebfdac32c
commit
c37c49fd56
|
@ -7,6 +7,6 @@ and will be removed in 3.6 or later. Use
|
|||
"""
|
||||
# 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…
Reference in New Issue