Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2314a047
Commit
2314a047
authored
Oct 16, 2002
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use string methods. Re-organize imports to Python Normal Form.
parent
27c4e09a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Doc/tools/sgmlconv/esis2sgml.py
Doc/tools/sgmlconv/esis2sgml.py
+4
-3
No files found.
Doc/tools/sgmlconv/esis2sgml.py
View file @
2314a047
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment