summaryrefslogtreecommitdiff
path: root/paste/modpython.py
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:37:15 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:37:15 +0100
commit6916751bf7d7107f5dce709c02ae8e60c46e1176 (patch)
treecf36e8135e8613d14054009b73e14ba291840536 /paste/modpython.py
parent9789a96ca9aab44bd71fdcfc5c0bed1ef7cf0838 (diff)
downloadpaste-6916751bf7d7107f5dce709c02ae8e60c46e1176.tar.gz
Python 3: use six.reraise() to re-raise an exception with the traceback
Diffstat (limited to 'paste/modpython.py')
-rw-r--r--paste/modpython.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/modpython.py b/paste/modpython.py
index a3fef55..692a94f 100644
--- a/paste/modpython.py
+++ b/paste/modpython.py
@@ -49,6 +49,7 @@ This module highly based on Robert Brewer's, here:
http://projects.amor.org/misc/svn/modpython_gateway.py
"""
+import six
import traceback
try:
@@ -176,7 +177,7 @@ class Handler(object):
if exc_info:
try:
if self.started:
- raise exc_info[0], exc_info[1], exc_info[2]
+ six.reraise(exc_info[0], exc_info[1], exc_info[2])
finally:
exc_info = None