mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Sort generated code by name for more predictable results
This commit is contained in:
parent
c5b562d4f6
commit
e8cdcf369d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user