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