[Python-checkins] r73333 - python/branches/py3k/Lib/contextlib.py
raymond.hettinger
python-checkins at python.org
Wed Jun 10 18:13:42 CEST 2009
Author: raymond.hettinger
Date: Wed Jun 10 18:13:42 2009
New Revision: 73333
Log:
Issue 6256: Fix stacklevel in warning message.
Modified:
python/branches/py3k/Lib/contextlib.py
Modified: python/branches/py3k/Lib/contextlib.py
==============================================================================
--- python/branches/py3k/Lib/contextlib.py (original)
+++ python/branches/py3k/Lib/contextlib.py Wed Jun 10 18:13:42 2009
@@ -103,7 +103,7 @@
"""
warn("With-statements now directly support multiple context managers",
- DeprecationWarning, 2)
+ DeprecationWarning, 3)
exits = []
vars = []
exc = (None, None, None)
More information about the Python-checkins
mailing list