]> granicus.if.org Git - python/commitdiff
Fix token.py main code vs. dict views.
authorGeorg Brandl <georg@python.org>
Mon, 26 Feb 2007 09:41:19 +0000 (09:41 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 26 Feb 2007 09:41:19 +0000 (09:41 +0000)
Lib/token.py

index cacd14dc332f174f2eb6909bb12d5e5caa8e2119..2257ebfe9b22b8fb04678e15a4034747bdf91040 100755 (executable)
@@ -108,7 +108,7 @@ def main():
             name, val = match.group(1, 2)
             val = int(val)
             tokens[val] = name          # reverse so we can sort them...
-    keys = tokens.keys()
+    keys = list(tokens.keys())
     keys.sort()
     # load the output skeleton from the target:
     try: