Fix flaky mime table generation

This commit is contained in:
2019-10-26 19:53:41 -04:00
parent b4199a1fd8
commit 50fcec25f7
3 changed files with 359 additions and 359 deletions

View File

@@ -71,7 +71,7 @@ with open("mime.csv") as f:
print("#include <stdlib.h>\n")
# Enum
print("enum mime {")
for mime, ext in mimes.items():
for mime, ext in sorted(mimes.items()):
print(" " + clean(mime) + "=" + mime_id(mime) + ",")
print("};")