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
2026-01-06 07:22:09 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
e06cc67c19
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
first step in backout of bad default->3.5 merge d085b4f779af. Create new head and fix whitespace.
2016-06-03 15:17:13 -07:00
warnings
.
warn
(
'
module-level warning
'
,
DeprecationWarning
,
stacklevel
=
2
)
Reference in a new issue
Copy permalink