Mercurial > cpython-lru_cache-weakref
diff Lib/contextlib.py @ 43189:d442984f290b
Fix a poorly-translated raise statement in contextlib.
| author | Collin Winter <collinw@gmail.com> |
|---|---|
| date | Sat, 01 Sep 2007 20:27:58 +0000 |
| parents | 981ecc526703 |
| children | 317ba53cd45c |
line wrap: on
line diff
--- a/Lib/contextlib.py Sat Sep 01 20:26:44 2007 +0000 +++ b/Lib/contextlib.py Sat Sep 01 20:27:58 2007 +0000 @@ -125,7 +125,8 @@ # Don't rely on sys.exc_info() still containing # the right information. Another exception may # have been raised and caught by an exit method - raise exc[0](exc[1]).with_traceback(exc[2]) + # exc[1] already has the __traceback__ attribute populated + raise exc[1] class closing(object):
