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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fde29be4d7f32dc2ec2224c2b28c63d306de6661;p=thirdparty%2FPython%2Fcpython.git Issue 6256: Fix stacklevel in warning message. --- diff --git a/Lib/contextlib.py b/Lib/contextlib.py index 0841ac33ed54..82adcd32fea4 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)