Author: collin.winter
Date: Sat Sep 1 22:27:58 2007
New Revision: 57887
Modified:
python/branches/py3k/Lib/contextlib.py
Log:
Fix a poorly-translated raise statement in contextlib.
Modified: python/branches/py3k/Lib/contextlib.py
==============================================================================
--- python/branches/py3k/Lib/contextlib.py (original)
+++ python/branches/py3k/Lib/contextlib.py Sat Sep 1 22:27:58 2007
@@ -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):
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins