summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-10-16 16:06:07 (GMT)
committerFred Drake <fdrake@acm.org>2002-10-16 16:06:07 (GMT)
commit2314a0470f0c8a78c30caa3f565b228e3968b716 (patch)
treebbcb56a843419b1f6765eb12ea22b351b90d6532 /Doc
parent27c4e09a62cc43fa8ce7dcd142a93d8c9411287f (diff)
downloadcpython-2314a0470f0c8a78c30caa3f565b228e3968b716.zip
cpython-2314a0470f0c8a78c30caa3f565b228e3968b716.tar.gz
cpython-2314a0470f0c8a78c30caa3f565b228e3968b716.tar.bz2
Use string methods. Re-organize imports to Python Normal Form.
Diffstat (limited to 'Doc')
-rwxr-xr-xDoc/tools/sgmlconv/esis2sgml.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/tools/sgmlconv/esis2sgml.py b/Doc/tools/sgmlconv/esis2sgml.py
index 458a074..b6f9a44 100755
--- a/Doc/tools/sgmlconv/esis2sgml.py
+++ b/Doc/tools/sgmlconv/esis2sgml.py
@@ -10,13 +10,14 @@ latex2esis.py script when run over the Python documentation.
# generated from an SGML or an XML application.
import errno
-import esistools
import os
import re
import string
from xml.sax.saxutils import escape
+import esistools
+
AUTOCLOSE = ()
@@ -63,7 +64,7 @@ def format_attrs(attrs, xml=0):
append('%s="%s"' % (name, escape(value)))
if parts:
parts.insert(0, '')
- return string.join(parts)
+ return " ".join(parts)
_nmtoken_rx = re.compile("[a-z][-._a-z0-9]*$", re.IGNORECASE)
@@ -171,7 +172,7 @@ def dump_empty_element_names(knownempties):
fp = open(EMPTIES_FILENAME, "w")
gilist = d.keys()
gilist.sort()
- fp.write(string.join(gilist, "\n"))
+ fp.write("\n".join(gilist))
fp.write("\n")
fp.close()