mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-24 18:33:44 +03:00
Sort tlobjects before generating their listing (#4163)
This commit is contained in:
parent
211238fcd2
commit
6ded164b85
|
@ -667,6 +667,7 @@ def _write_all_tlobjects(tlobjects, layer, builder):
|
||||||
builder.current_indent += 1
|
builder.current_indent += 1
|
||||||
|
|
||||||
# Fill the dictionary (0x1a2b3c4f: tl.full.type.path.Class)
|
# Fill the dictionary (0x1a2b3c4f: tl.full.type.path.Class)
|
||||||
|
tlobjects.sort(key=lambda x: x.name)
|
||||||
for tlobject in tlobjects:
|
for tlobject in tlobjects:
|
||||||
builder.write('{:#010x}: ', tlobject.id)
|
builder.write('{:#010x}: ', tlobject.id)
|
||||||
builder.write('functions' if tlobject.is_function else 'types')
|
builder.write('functions' if tlobject.is_function else 'types')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user