summaryrefslogtreecommitdiffstats
path: root/Lib/token.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-02-26 14:08:27 (GMT)
committerGuido van Rossum <guido@python.org>2007-02-26 14:08:27 (GMT)
commitc145ef3728f3cf036ec4fee40734f2bfe33aeac1 (patch)
tree454359d998b52a7ba2287fb4eb82db08b819a786 /Lib/token.py
parent94ab00036611a30137383465453cdb20105d42c3 (diff)
downloadcpython-c145ef3728f3cf036ec4fee40734f2bfe33aeac1.zip
cpython-c145ef3728f3cf036ec4fee40734f2bfe33aeac1.tar.gz
cpython-c145ef3728f3cf036ec4fee40734f2bfe33aeac1.tar.bz2
Use better idiom to sort keys.
Diffstat (limited to 'Lib/token.py')
-rwxr-xr-xLib/token.py3
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)