From: Raymond Hettinger Date: Wed, 10 Jun 2009 16:15:02 +0000 (+0000) Subject: Issue 6256: Fix stacklevel in warning message. X-Git-Tag: v2.7a1~989 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1917ad587f762777d3d4c686e7ba8fae2d4e0b71;p=python Issue 6256: Fix stacklevel in warning message. --- diff --git a/Lib/contextlib.py b/Lib/contextlib.py index af701d3226..6fcb5360eb 100644 --- a/Lib/contextlib.py +++ b/Lib/contextlib.py @@ -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)