summaryrefslogtreecommitdiffstats
path: root/WebKitTools/Scripts/create-html-entity-table
diff options
context:
space:
mode:
Diffstat (limited to 'WebKitTools/Scripts/create-html-entity-table')
-rwxr-xr-xWebKitTools/Scripts/create-html-entity-table2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebKitTools/Scripts/create-html-entity-table b/WebKitTools/Scripts/create-html-entity-table
index 46c8c52..c408207 100755
--- a/WebKitTools/Scripts/create-html-entity-table
+++ b/WebKitTools/Scripts/create-html-entity-table
@@ -73,7 +73,7 @@ html_entity_names_file = open(input_path)
entries = simplejson.load(html_entity_names_file)
html_entity_names_file.close()
-entries = sorted(entries, key=lambda entry: entry['entity'])
+entries.sort(lambda a, b: cmp(a['entity'], b['entity']))
entity_count = len(entries)
output_file = open(output_path, "w")