diff options
author | Raymond Hettinger <python@rcn.com> | 2009-06-10 16:13:42 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-06-10 16:13:42 (GMT) |
commit | fde29be4d7f32dc2ec2224c2b28c63d306de6661 (patch) | |
tree | 592b2f1cce5cbdb1361573817d99828832debc1e /Lib | |
parent | 5c96308ee17f0c1f2ef2205a910919ea7d237189 (diff) | |
download | cpython-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.py | 2 |
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) |