[issue25204] Confusing (?) warning when run deprecated module as script

2015-09-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python -Wa Lib/imp.py sys:1: PendingDeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses "sys:1:" is output when the stacklevel argument is larger then the deep of the stack.

[issue25204] Confusing (?) warning when run deprecated module as script

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___