diff options
Diffstat (limited to 'wsgitools')
-rw-r--r-- | wsgitools/middlewares.py | 2 | ||||
-rw-r--r-- | wsgitools/scgi/asynchronous.py | 2 | ||||
-rw-r--r-- | wsgitools/scgi/forkpool.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/wsgitools/middlewares.py b/wsgitools/middlewares.py index 8dca2e0..32ecb59 100644 --- a/wsgitools/middlewares.py +++ b/wsgitools/middlewares.py @@ -11,7 +11,7 @@ from wsgitools.internal import bytes2str, str2bytes if sys.version_info[0] >= 3: def exc_info_for_raise(exc_info): - return exc_info[0](exc_info[1]).with_traceback(exc_info[2]) + return exc_info[1].with_traceback(exc_info[2]) else: def exc_info_for_raise(exc_info): return exc_info[0], exc_info[1], exc_info[2] diff --git a/wsgitools/scgi/asynchronous.py b/wsgitools/scgi/asynchronous.py index 8c44ba2..5354ced 100644 --- a/wsgitools/scgi/asynchronous.py +++ b/wsgitools/scgi/asynchronous.py @@ -11,7 +11,7 @@ from wsgitools.scgi import _convert_environ, FileWrapper if sys.version_info[0] >= 3: def exc_info_for_raise(exc_info): - return exc_info[0](exc_info[1]).with_traceback(exc_info[2]) + return exc_info[1].with_traceback(exc_info[2]) else: def exc_info_for_raise(exc_info): return exc_info[0], exc_info[1], exc_info[2] diff --git a/wsgitools/scgi/forkpool.py b/wsgitools/scgi/forkpool.py index f3990cb..752f0e7 100644 --- a/wsgitools/scgi/forkpool.py +++ b/wsgitools/scgi/forkpool.py @@ -21,7 +21,7 @@ from wsgitools.scgi import _convert_environ, FileWrapper if sys.version_info[0] >= 3: def exc_info_for_raise(exc_info): - return exc_info[0](exc_info[1]).with_traceback(exc_info[2]) + return exc_info[1].with_traceback(exc_info[2]) else: def exc_info_for_raise(exc_info): return exc_info[0], exc_info[1], exc_info[2] |