mirror of
https://github.com/ckb-next/ckb-next.git
synced 2026-10-10 12:27:21 -04:00
Sort defines by string length in defs2magic
This commit is contained in:
@@ -16,6 +16,9 @@ for cmd in defs_list:
|
|||||||
#print(str(cmds))
|
#print(str(cmds))
|
||||||
defs_file.close()
|
defs_file.close()
|
||||||
|
|
||||||
|
# Sort the list by string len desc
|
||||||
|
cmds.sort(key = lambda i: len(i[0]), reverse = True)
|
||||||
|
|
||||||
stdin = sys.stdin.readlines()
|
stdin = sys.stdin.readlines()
|
||||||
print()
|
print()
|
||||||
for stdline in stdin:
|
for stdline in stdin:
|
||||||
|
|||||||
Reference in New Issue
Block a user