Sort generated code by name for more predictable results

This commit is contained in:
Lonami Exo 2017-09-04 15:11:46 +02:00
parent c5b562d4f6
commit e8cdcf369d

View File

@ -137,7 +137,7 @@ class TLGenerator:
)))
# Generate the class for every TLObject
for t in tlobjects:
for t in sorted(tlobjects, key=lambda x: x.name):
# Omit core types, they're embedded in the code
if t.is_core_type():
continue