From fde29be4d7f32dc2ec2224c2b28c63d306de6661 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 10 Jun 2009 16:13:42 +0000 Subject: Issue 6256: Fix stacklevel in warning message. --- Lib/contextlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/contextlib.py b/Lib/contextlib.py index 0841ac3..82adcd3 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) -- cgit v0.12