summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormbyt <random.seed@web.de>2016-10-19 17:50:35 (GMT)
committermbyt <random.seed@web.de>2016-10-19 17:50:35 (GMT)
commit30135c2aa0b8a5e58ca8d3177a36b8c3678de3d5 (patch)
treea21c7002dd9ab77c193662c678b4a7d88c53fe2e
parent5587089a661a520a32c353ea886939cd63a0636a (diff)
downloadSCons-30135c2aa0b8a5e58ca8d3177a36b8c3678de3d5.zip
SCons-30135c2aa0b8a5e58ca8d3177a36b8c3678de3d5.tar.gz
SCons-30135c2aa0b8a5e58ca8d3177a36b8c3678de3d5.tar.bz2
python3 compatibility. Exceptions might have more arguments.
Especially the UnicodeDecodeError takes 5 arguments. Without this change, are TypeError: function takes exactly 5 arguments is raised at this position.
-rw-r--r--src/engine/SCons/Taskmaster.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Taskmaster.py b/src/engine/SCons/Taskmaster.py
index 461a556..a620ba1 100644
--- a/src/engine/SCons/Taskmaster.py
+++ b/src/engine/SCons/Taskmaster.py
@@ -545,7 +545,7 @@ class Task(object):
if sys.version_info[0] == 2:
exec("raise exc_type, exc_value, exc_traceback")
else: # sys.version_info[0] == 3:
- exec("raise exc_type(exc_value).with_traceback(exc_traceback)")
+ exec("raise exc_type(*exc_value.args).with_traceback(exc_traceback)")
# raise e.__class__, e.__class__(e), sys.exc_info()[2]