[Python-checkins] r73334 - python/trunk/Lib/contextlib.py
raymond.hettinger
python-checkins at python.org
Wed Jun 10 18:15:02 CEST 2009
Author: raymond.hettinger
Date: Wed Jun 10 18:15:02 2009
New Revision: 73334
Log:
Issue 6256: Fix stacklevel in warning message.
Modified:
python/trunk/Lib/contextlib.py
Modified: python/trunk/Lib/contextlib.py
==============================================================================
--- python/trunk/Lib/contextlib.py (original)
+++ python/trunk/Lib/contextlib.py Wed Jun 10 18:15:02 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