Correct a bug in the nested() example

This commit is contained in:
Nick Coghlan 2006-04-24 04:41:45 +00:00
parent d36c583656
commit c854ad6eb9
1 changed files with 4 additions and 1 deletions

View File

@ -956,7 +956,10 @@ Examples
else:
exc = (None, None, None)
if exc != (None, None, None):
raise
# sys.exc_info() may have been
# changed by one of the exit methods
# so provide explicit exception info
raise exc[0], exc[1], exc[2]
Sample usage: