diff options
author | Collin Winter <collinw@gmail.com> | 2007-03-21 02:11:39 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-03-21 02:11:39 (GMT) |
commit | 65d09d4ee984d569424e11415f30d6af209ef558 (patch) | |
tree | 8b94fe73e8dbf38622ef2bff089310197956eb08 /Doc/tools/sgmlconv/latex2esis.py | |
parent | 89df245607619ed532106fbbdbf80745815f9c96 (diff) | |
download | cpython-65d09d4ee984d569424e11415f30d6af209ef558.zip cpython-65d09d4ee984d569424e11415f30d6af209ef558.tar.gz cpython-65d09d4ee984d569424e11415f30d6af209ef558.tar.bz2 |
Run 2to3 over Doc/tools/.
Diffstat (limited to 'Doc/tools/sgmlconv/latex2esis.py')
-rwxr-xr-x | Doc/tools/sgmlconv/latex2esis.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/tools/sgmlconv/latex2esis.py b/Doc/tools/sgmlconv/latex2esis.py index cbc9828..3ee86e3 100755 --- a/Doc/tools/sgmlconv/latex2esis.py +++ b/Doc/tools/sgmlconv/latex2esis.py @@ -472,7 +472,7 @@ class TableHandler(xml.sax.handler.ContentHandler): name = attrs["name"] self.__current = TableEntry(name, environment=1) self.__current.verbatim = attrs.get("verbatim") == "yes" - if attrs.has_key("outputname"): + if "outputname" in attrs: self.__current.outputname = attrs.get("outputname") self.__current.endcloses = attrs.get("endcloses", "").split() def end_environment(self): @@ -482,11 +482,11 @@ class TableHandler(xml.sax.handler.ContentHandler): name = attrs["name"] self.__current = TableEntry(name) self.__current.closes = attrs.get("closes", "").split() - if attrs.has_key("outputname"): + if "outputname" in attrs: self.__current.outputname = attrs.get("outputname") def end_macro(self): name = self.__current.name - if self.__table.has_key(name): + if name in self.__table: raise ValueError("name %r already in use" % (name,)) self.__table[name] = self.__current self.__current = None |