Issue #24199: Add stacklevel to deprecation warning call.

This commit is contained in:
Terry Jan Reedy 2015-09-20 02:34:03 -04:00
parent cebfdac32c
commit c37c49fd56
1 changed files with 1 additions and 1 deletions

View File

@ -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(' ')]