mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue 6256: Fix stacklevel in warning message.
This commit is contained in:
parent
5c96308ee1
commit
fde29be4d7
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ def nested(*managers):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
warn("With-statements now directly support multiple context managers",
|
warn("With-statements now directly support multiple context managers",
|
||||||
DeprecationWarning, 2)
|
DeprecationWarning, 3)
|
||||||
exits = []
|
exits = []
|
||||||
vars = []
|
vars = []
|
||||||
exc = (None, None, None)
|
exc = (None, None, None)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue