mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +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)
|
||||
val = int(val)
|
||||
tokens[val] = name # reverse so we can sort them...
|
||||
keys = list(tokens.keys())
|
||||
keys.sort()
|
||||
keys = sorted(tokens.keys())
|
||||
# load the output skeleton from the target:
|
||||
try:
|
||||
fp = open(outFileName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue