commit | bf82e374ee737992235cbe944c9ddbd58236a892 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Fri May 16 17:02:34 2008 +0000 |
committer | Georg Brandl <georg@python.org> | Fri May 16 17:02:34 2008 +0000 |
tree | f8c8dccaa76d58f9cb7d8cc0abb1355be75ee369 | |
parent | acbca71ea775fc488bead0876d0cdbd48670dcbc [diff] [blame] |
More 2to3 fixes in the Tools directory. Fixes #2893.
diff --git a/Tools/modulator/varsubst.py b/Tools/modulator/varsubst.py index 473fb55..4b68512 100644 --- a/Tools/modulator/varsubst.py +++ b/Tools/modulator/varsubst.py
@@ -28,7 +28,7 @@ s = s[2:] continue name = m.group(1) - if not self.dict.has_key(name): + if name not in self.dict: raise error('No such variable: '+name) value = self.dict[name] if self.do_useindent and '\n' in value: