]> granicus.if.org Git - python/commitdiff
Issue 6256: Fix stacklevel in warning message.
authorRaymond Hettinger <python@rcn.com>
Wed, 10 Jun 2009 16:13:42 +0000 (16:13 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 10 Jun 2009 16:13:42 +0000 (16:13 +0000)
Lib/contextlib.py

index 0841ac33ed541611b768c37843f3c629555fdf7b..82adcd32fea482ea218be9eaed71ed58e2d59b95 100644 (file)
@@ -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)