Apply Python 3 futurize transform libmodernize.fixes.fix_raise_six.

This commit is contained in:
Tim Abbott
2015-11-01 08:14:59 -08:00
parent cd6f8e9191
commit 5ffb4deb8d

View File

@@ -4,6 +4,7 @@ import sys
import time
import ctypes
import threading
import six
# Based on http://code.activestate.com/recipes/483752/
@@ -79,5 +80,5 @@ def timeout(timeout, func, *args, **kwargs):
if thread.exc_info:
# Raise the original stack trace so our error messages are more useful.
# from http://stackoverflow.com/a/4785766/90777
raise thread.exc_info[0], thread.exc_info[1], thread.exc_info[2]
six.reraise(thread.exc_info[0], thread.exc_info[1], thread.exc_info[2])
return thread.result