Kaydet (Commit) c59dacdb authored tarafından Collin Winter's avatar Collin Winter

Fix a poorly-translated raise statement in contextlib.

üst 1966f1c9
......@@ -125,7 +125,8 @@ def nested(*managers):
# 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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment