This website requires JavaScript.
Explore
Help
Sign in
Stowage
/
cpython
Watch
2
Star
0
Fork
You've already forked cpython
0
mirror of
https://github.com/python/cpython.git
synced
2025-10-23 09:53:47 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
49f51deeef
cpython
/
Lib
/
test
/
test_warnings
/
data
/
import_warning.py
4 lines
89 B
Python
Raw
Normal View
History
Unescape
Escape
Issue #24305: Prevent import subsystem stack frames from being counted by the warnings.warn(stacklevel=) parameter.
2015-09-06 00:39:37 -07:00
import
warnings
Merge from 3.5
2015-09-06 22:31:26 -07:00
warnings
.
warn
(
'
module-level warning
'
,
DeprecationWarning
,
stacklevel
=
2
)
Reference in a new issue
Copy permalink