mirror of
https://github.com/python/cpython.git
synced 2025-10-10 08:53:14 +00:00
Use better idiom to sort keys.
This commit is contained in:
parent
94ab000366
commit
c145ef3728
1 changed files with 1 additions and 2 deletions
|
@ -108,8 +108,7 @@ def main():
|
||||||
name, val = match.group(1, 2)
|
name, val = match.group(1, 2)
|
||||||
val = int(val)
|
val = int(val)
|
||||||
tokens[val] = name # reverse so we can sort them...
|
tokens[val] = name # reverse so we can sort them...
|
||||||
keys = list(tokens.keys())
|
keys = sorted(tokens.keys())
|
||||||
keys.sort()
|
|
||||||
# load the output skeleton from the target:
|
# load the output skeleton from the target:
|
||||||
try:
|
try:
|
||||||
fp = open(outFileName)
|
fp = open(outFileName)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue