From: Raymond Hettinger Date: Wed, 10 Jun 2009 16:13:42 +0000 (+0000) Subject: Issue 6256: Fix stacklevel in warning message. X-Git-Tag: v3.1rc2~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fde29be4d7f32dc2ec2224c2b28c63d306de6661;p=python Issue 6256: Fix stacklevel in warning message. --- diff --git a/Lib/contextlib.py b/Lib/contextlib.py index 0841ac33ed..82adcd32fe 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)