Commit c145ef37 authored by Guido van Rossum's avatar Guido van Rossum

Use better idiom to sort keys.

parent 94ab0003
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment