mirror of
https://github.com/python/cpython.git
synced 2025-08-25 03:04:55 +00:00
Ran 2to3 over scripts directory.
This commit is contained in:
parent
d11ae5d6ec
commit
8efadf5d66
19 changed files with 74 additions and 86 deletions
|
@ -35,9 +35,8 @@ def parse(text,pos=0,endpos=None):
|
|||
def writefile(f,defs):
|
||||
|
||||
f.write("entitydefs = {\n")
|
||||
items = defs.items()
|
||||
items.sort()
|
||||
for name,(charcode,comment) in items:
|
||||
items = sorted(defs.items())
|
||||
for name, (charcode,comment) in items:
|
||||
if charcode[:2] == '&#':
|
||||
code = int(charcode[2:-1])
|
||||
if code < 256:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue