summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLib/token.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/token.py b/Lib/token.py
index 2257ebfe9b..147536c403 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)