Issue 6256: Fix stacklevel in warning message.
This commit is contained in:
parent
d3a4d2951f
commit
1917ad587f
|
@ -103,7 +103,7 @@ def nested(*managers):
|
|||
|
||||
"""
|
||||
warn("With-statements now directly support multiple context managers",
|
||||
DeprecationWarning, 2)
|
||||
DeprecationWarning, 3)
|
||||
exits = []
|
||||
vars = []
|
||||
exc = (None, None, None)
|
||||
|
|
Loading…
Reference in New Issue