Issue 6256: Fix stacklevel in warning message.

This commit is contained in:
Raymond Hettinger 2009-06-10 16:13:42 +00:00
parent 5c96308ee1
commit fde29be4d7

View file

@ -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)