summaryrefslogtreecommitdiff
path: root/Lib/contextlib.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-06-10 16:13:42 +0000
committerRaymond Hettinger <python@rcn.com>2009-06-10 16:13:42 +0000
commitfde29be4d7f32dc2ec2224c2b28c63d306de6661 (patch)
tree592b2f1cce5cbdb1361573817d99828832debc1e /Lib/contextlib.py
parent5c96308ee17f0c1f2ef2205a910919ea7d237189 (diff)
downloadcpython-git-fde29be4d7f32dc2ec2224c2b28c63d306de6661.tar.gz
Issue 6256: Fix stacklevel in warning message.
Diffstat (limited to 'Lib/contextlib.py')
-rw-r--r--Lib/contextlib.py2
1 files changed, 1 insertions, 1 deletions
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)