diff options
author | Greg Noel <GregNoel@tigris.org> | 2010-04-15 00:02:59 +0000 |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2010-04-15 00:02:59 +0000 |
commit | a921c3f9497513ec3fcb10a367368b2efc2303d2 (patch) | |
tree | 0e17c9808475e40bfad54db43529ad01d411e6c2 /src/engine/SCons/Action.py | |
parent | cf40c416003fbeb0e9781a79942bca2595ea127b (diff) | |
download | scons-a921c3f9497513ec3fcb10a367368b2efc2303d2.tar.gz |
http://scons.tigris.org/issues/show_bug.cgi?id=2345
Apply the first part of the 'raise' fixer (the three-argument cases are not
converted and will need to wait until native support of with_traceback() is
available).
Diffstat (limited to 'src/engine/SCons/Action.py')
-rw-r--r-- | src/engine/SCons/Action.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/SCons/Action.py b/src/engine/SCons/Action.py index ff67b490..6b046126 100644 --- a/src/engine/SCons/Action.py +++ b/src/engine/SCons/Action.py @@ -302,7 +302,7 @@ def _actionAppend(act1, act2): a1 = Action(act1) a2 = Action(act2) if a1 is None or a2 is None: - raise TypeError, "Cannot append %s to %s" % (type(act1), type(act2)) + raise TypeError("Cannot append %s to %s" % (type(act1), type(act2))) if isinstance(a1, ListAction): if isinstance(a2, ListAction): return ListAction(a1.list + a2.list) @@ -691,8 +691,8 @@ class CommandAction(_ActionAction): _ActionAction.__init__(self, **kw) if is_List(cmd): if list(filter(is_List, cmd)): - raise TypeError, "CommandAction should be given only " \ - "a single command" + raise TypeError("CommandAction should be given only " \ + "a single command") self.cmd_list = cmd def __str__(self): |