mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-18 11:06:39 +00: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
|
# 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
|
# Omit core types, they're embedded in the code
|
||||||
if t.is_core_type():
|
if t.is_core_type():
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user