Simply reraise from the exception instance on py3k

This commit is contained in:
Martin Packman 2012-07-26 12:26:24 +01:00
parent a2538440a8
commit 8585afdb90
1 changed files with 1 additions and 1 deletions

View File

@ -13,5 +13,5 @@ __all__ = [
def reraise(exc_class, exc_obj, exc_tb, _marker=object()):
"""Re-raise an exception received from sys.exc_info() or similar."""
raise exc_class(*exc_obj.args).with_traceback(exc_tb)
raise exc_obj.with_traceback(exc_tb)