Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27c4e09 commit 2314a04Copy full SHA for 2314a04
1 file changed
Doc/tools/sgmlconv/esis2sgml.py
@@ -10,13 +10,14 @@
10
# generated from an SGML or an XML application.
11
12
import errno
13
-import esistools
14
import os
15
import re
16
import string
17
18
from xml.sax.saxutils import escape
19
+import esistools
20
+
21
22
AUTOCLOSE = ()
23
@@ -63,7 +64,7 @@ def format_attrs(attrs, xml=0):
63
64
append('%s="%s"' % (name, escape(value)))
65
if parts:
66
parts.insert(0, '')
- return string.join(parts)
67
+ return " ".join(parts)
68
69
70
_nmtoken_rx = re.compile("[a-z][-._a-z0-9]*$", re.IGNORECASE)
@@ -171,7 +172,7 @@ def dump_empty_element_names(knownempties):
171
172
fp = open(EMPTIES_FILENAME, "w")
173
gilist = d.keys()
174
gilist.sort()
- fp.write(string.join(gilist, "\n"))
175
+ fp.write("\n".join(gilist))
176
fp.write("\n")
177
fp.close()
178
0 commit comments