diff options
author | Raymond Hettinger <python@rcn.com> | 2009-06-10 16:15:02 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-06-10 16:15:02 (GMT) |
commit | 1917ad587f762777d3d4c686e7ba8fae2d4e0b71 (patch) | |
tree | 1a7cc6cfbc407f9c39521b9893ed166199c2eb09 /Lib/contextlib.py | |
parent | d3a4d2951f44da7b0742e4068e69750bdcf1bb85 (diff) | |
download | cpython-1917ad587f762777d3d4c686e7ba8fae2d4e0b71.zip cpython-1917ad587f762777d3d4c686e7ba8fae2d4e0b71.tar.gz cpython-1917ad587f762777d3d4c686e7ba8fae2d4e0b71.tar.bz2 |
Issue 6256: Fix stacklevel in warning message.
Diffstat (limited to 'Lib/contextlib.py')
-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 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) |