diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-09-20 06:34:03 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-09-20 06:34:03 (GMT) |
commit | c37c49fd5617ffc7cfc37acee2e2737e1c357ca3 (patch) | |
tree | 414fdb94ea5974b9619306c28b5ed959bd168358 | |
parent | cebfdac32c0c20c196da87e7ce2dc1894d6d1b04 (diff) | |
download | cpython-c37c49fd5617ffc7cfc37acee2e2737e1c357ca3.zip cpython-c37c49fd5617ffc7cfc37acee2e2737e1c357ca3.tar.gz cpython-c37c49fd5617ffc7cfc37acee2e2737e1c357ca3.tar.bz2 |
Issue #24199: Add stacklevel to deprecation warning call.
-rw-r--r-- | Lib/idlelib/idlever.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/idlever.py b/Lib/idlelib/idlever.py index 13c68b8..3e9f69a 100644 --- a/Lib/idlelib/idlever.py +++ b/Lib/idlelib/idlever.py @@ -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(' ')] |