From 1917ad587f762777d3d4c686e7ba8fae2d4e0b71 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 10 Jun 2009 16:15:02 +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 af701d3..6fcb536 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