summaryrefslogtreecommitdiff
path: root/Lib/lib2to3/pgen2/token.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib2to3/pgen2/token.py')
-rwxr-xr-xLib/lib2to3/pgen2/token.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/pgen2/token.py b/Lib/lib2to3/pgen2/token.py
index 61468b313e..1c810651eb 100755
--- a/Lib/lib2to3/pgen2/token.py
+++ b/Lib/lib2to3/pgen2/token.py
@@ -67,7 +67,7 @@ NT_OFFSET = 256
#--end constants--
tok_name = {}
-for _name, _value in globals().items():
+for _name, _value in list(globals().items()):
if type(_value) is type(0):
tok_name[_value] = _name