changeset: 98080:048fce602bcd branch: 3.4 parent: 98075:3ed2427758cf user: Terry Jan Reedy date: Sun Sep 20 02:34:03 2015 -0400 files: Lib/idlelib/idlever.py description: Issue #24199: Add stacklevel to deprecation warning call. diff -r 3ed2427758cf -r 048fce602bcd Lib/idlelib/idlever.py --- a/Lib/idlelib/idlever.py Sun Sep 20 00:28:50 2015 +0000 +++ b/Lib/idlelib/idlever.py Sun Sep 20 02:34:03 2015 -0400 @@ -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(' ')]