Issue25204
Created on 2015年09月21日 18:22 by serhiy.storchaka, last changed 2022年04月11日 14:58 by admin.
| Messages (1) |
|
msg251247 - (view) |
Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) |
Date: 2015年09月21日 18:22 |
$ ./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.
Following patch stops raising just below the surface.
$ ./python -Wa Lib/imp.py
Lib/imp.py:33: PendingDeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
PendingDeprecationWarning, stacklevel=2)
However I'm not sure that the current behavior is incorrect.
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2022年04月11日 14:58:21 | admin | set | github: 69391 |
| 2015年09月21日 18:42:02 | Arfrever | set | nosy:
+ Arfrever
|
| 2015年09月21日 18:22:00 | serhiy.storchaka | create |