forked from extern/Unexpected-Keyboard
compose: Ensure reproducible order
This commit is contained in:
parent
84e10e0470
commit
1af35f17d0
@ -238,7 +238,7 @@ public final class ComposeKeyData
|
|||||||
|
|
||||||
total_sequences = 0
|
total_sequences = 0
|
||||||
tries = {} # Orderred dict
|
tries = {} # Orderred dict
|
||||||
for fname in sys.argv[1:]:
|
for fname in sorted(sys.argv[1:]):
|
||||||
tname, _ = os.path.splitext(os.path.basename(fname))
|
tname, _ = os.path.splitext(os.path.basename(fname))
|
||||||
sequences = parse_sequences_file(fname)
|
sequences = parse_sequences_file(fname)
|
||||||
add_sequences_to_trie(sequences, tries.setdefault(tname, {}))
|
add_sequences_to_trie(sequences, tries.setdefault(tname, {}))
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user