Kaydet (Commit) c37c49fd authored tarafından Terry Jan Reedy's avatar Terry Jan Reedy

Issue #24199: Add stacklevel to deprecation warning call.

üst cebfdac3
......@@ -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(' ')]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment