Use better idiom to sort keys.

This commit is contained in:
Guido van Rossum 2007-02-26 14:08:27 +00:00
parent 94ab000366
commit c145ef3728

View file

@ -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)