Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fde29be

Browse files
committed
Issue 6256: Fix stacklevel in warning message.
1 parent 5c96308 commit fde29be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/contextlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def nested(*managers):
103103
104104
"""
105105
warn("With-statements now directly support multiple context managers",
106-
DeprecationWarning, 2)
106+
DeprecationWarning, 3)
107107
exits = []
108108
vars = []
109109
exc = (None, None, None)

0 commit comments

Comments
 (0)