diff options
author | Georg Brandl <georg@python.org> | 2008-05-16 15:23:30 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-16 15:23:30 (GMT) |
commit | 8efadf5d6613e76dfc5476f58adb9a2135173129 (patch) | |
tree | 93ea7c3914c65801cd3844aa0ea1304676076940 /Tools/scripts/parseentities.py | |
parent | d11ae5d6ecda1d233af651a360c9f9140992f05d (diff) | |
download | cpython-8efadf5d6613e76dfc5476f58adb9a2135173129.zip cpython-8efadf5d6613e76dfc5476f58adb9a2135173129.tar.gz cpython-8efadf5d6613e76dfc5476f58adb9a2135173129.tar.bz2 |
Ran 2to3 over scripts directory.
Diffstat (limited to 'Tools/scripts/parseentities.py')
-rwxr-xr-x | Tools/scripts/parseentities.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Tools/scripts/parseentities.py b/Tools/scripts/parseentities.py index cf4e17c..8d93167 100755 --- a/Tools/scripts/parseentities.py +++ b/Tools/scripts/parseentities.py @@ -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: |