summaryrefslogtreecommitdiffstats
path: root/Tools/modulator
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-22 23:05:06 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-22 23:05:06 (GMT)
commita817e5894b20d68263056bf9af8f1582954b1d8f (patch)
tree2409955c53ffb88f6934f277d66c4fe44011e601 /Tools/modulator
parent2d7f6a079df2b4582d7ccc32a7a2a7287d0bf175 (diff)
downloadcpython-a817e5894b20d68263056bf9af8f1582954b1d8f.zip
cpython-a817e5894b20d68263056bf9af8f1582954b1d8f.tar.gz
cpython-a817e5894b20d68263056bf9af8f1582954b1d8f.tar.bz2
Convert raise statements in Tools/.
Diffstat (limited to 'Tools/modulator')
-rwxr-xr-xTools/modulator/genmodule.py4
-rw-r--r--Tools/modulator/varsubst.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/Tools/modulator/genmodule.py b/Tools/modulator/genmodule.py
index da30684..7df3983 100755
--- a/Tools/modulator/genmodule.py
+++ b/Tools/modulator/genmodule.py
@@ -63,8 +63,8 @@ class writer:
fn = os.path.join(fn, name)
if os.path.exists(fn):
return open(fn, 'r')
- raise error, 'Template '+name+' not found for '+self._type+' '+ \
- self.name
+ raise error('Template '+name+' not found for '+self._type+' '+ \
+ self.name)
class module(writer):
_type = 'module'
diff --git a/Tools/modulator/varsubst.py b/Tools/modulator/varsubst.py
index 3b33950..473fb55 100644
--- a/Tools/modulator/varsubst.py
+++ b/Tools/modulator/varsubst.py
@@ -29,7 +29,7 @@ class Varsubst:
continue
name = m.group(1)
if not self.dict.has_key(name):
- raise error, 'No such variable: '+name
+ raise error('No such variable: '+name)
value = self.dict[name]
if self.do_useindent and '\n' in value:
value = self._modindent(value, rv)