diff options
author | Alex Gr?nholm <alex.gronholm@nextday.fi> | 2011-05-22 05:03:21 +0300 |
---|---|---|
committer | Alex Gr?nholm <alex.gronholm@nextday.fi> | 2011-05-22 05:03:21 +0300 |
commit | 1df1c78299e06fecde664d4ddb5ec549097daf88 (patch) | |
tree | 39202cc5b606804ae6c5d012cb7b97acfa55eb0c /paste/deploy/util.py | |
parent | af0125821babc057b451f659b816216569ce8f26 (diff) | |
download | pastedeploy-1df1c78299e06fecde664d4ddb5ec549097daf88.tar.gz |
Refactored the code to be compatible with Python 3.1 and above
Diffstat (limited to 'paste/deploy/util.py')
-rw-r--r-- | paste/deploy/util.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/paste/deploy/util.py b/paste/deploy/util.py index 41f8dbd..c5056b2 100644 --- a/paste/deploy/util.py +++ b/paste/deploy/util.py @@ -3,6 +3,8 @@ import inspect import sys +from paste.deploy.compat import reraise + def fix_type_error(exc_info, callable, varargs, kwargs): """ @@ -54,5 +56,5 @@ def fix_call(callable, *args, **kw): val = callable(*args, **kw) except TypeError: exc_info = fix_type_error(None, callable, args, kw) - raise exc_info[0], exc_info[1], exc_info[2] + reraise(*exc_info) return val |