diff options
author | Guido van Rossum <guido@python.org> | 2007-02-26 14:08:27 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-02-26 14:08:27 (GMT) |
commit | c145ef3728f3cf036ec4fee40734f2bfe33aeac1 (patch) | |
tree | 454359d998b52a7ba2287fb4eb82db08b819a786 /Lib | |
parent | 94ab00036611a30137383465453cdb20105d42c3 (diff) | |
download | cpython-c145ef3728f3cf036ec4fee40734f2bfe33aeac1.zip cpython-c145ef3728f3cf036ec4fee40734f2bfe33aeac1.tar.gz cpython-c145ef3728f3cf036ec4fee40734f2bfe33aeac1.tar.bz2 |
Use better idiom to sort keys.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/token.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/token.py b/Lib/token.py index 2257ebf..147536c 100755 --- a/Lib/token.py +++ b/Lib/token.py @@ -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) |