Mercurial > cpython-lru_cache-weakref
diff Lib/contextlib.py @ 54661:b6095dc8f35c legacy-trunk
Issue 6256: Fix stacklevel in warning message.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Wed, 10 Jun 2009 16:15:02 +0000 |
| parents | 260c8ed3f5df |
| children | dc3817a8f552 |
line wrap: on
line diff
--- a/Lib/contextlib.py Wed Jun 10 13:45:31 2009 +0000 +++ b/Lib/contextlib.py Wed Jun 10 16:15:02 2009 +0000 @@ -103,7 +103,7 @@ """ warn("With-statements now directly support multiple context managers", - DeprecationWarning, 2) + DeprecationWarning, 3) exits = [] vars = [] exc = (None, None, None)
