diff options
author | Georg Brandl <georg@python.org> | 2008-05-16 17:02:34 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-16 17:02:34 (GMT) |
commit | bf82e374ee737992235cbe944c9ddbd58236a892 (patch) | |
tree | f8c8dccaa76d58f9cb7d8cc0abb1355be75ee369 /Tools/modulator/genmodule.py | |
parent | acbca71ea775fc488bead0876d0cdbd48670dcbc (diff) | |
download | cpython-bf82e374ee737992235cbe944c9ddbd58236a892.zip cpython-bf82e374ee737992235cbe944c9ddbd58236a892.tar.gz cpython-bf82e374ee737992235cbe944c9ddbd58236a892.tar.bz2 |
More 2to3 fixes in the Tools directory. Fixes #2893.
Diffstat (limited to 'Tools/modulator/genmodule.py')
-rwxr-xr-x | Tools/modulator/genmodule.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/modulator/genmodule.py b/Tools/modulator/genmodule.py index 7df3983..f8703ef 100755 --- a/Tools/modulator/genmodule.py +++ b/Tools/modulator/genmodule.py @@ -40,7 +40,7 @@ class writer: def makesubst(self): if not self._subst: - if not self.__dict__.has_key('abbrev'): + if 'abbrev' not in self.__dict__: self.abbrev = self.name self.Abbrev = self.abbrev[0].upper()+self.abbrev[1:] subst = varsubst.Varsubst(self.__dict__) |