summaryrefslogtreecommitdiffstats
path: root/Doc/tools/sgmlconv/latex2esis.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-03-21 02:11:39 (GMT)
committerCollin Winter <collinw@gmail.com>2007-03-21 02:11:39 (GMT)
commit65d09d4ee984d569424e11415f30d6af209ef558 (patch)
tree8b94fe73e8dbf38622ef2bff089310197956eb08 /Doc/tools/sgmlconv/latex2esis.py
parent89df245607619ed532106fbbdbf80745815f9c96 (diff)
downloadcpython-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-xDoc/tools/sgmlconv/latex2esis.py6
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