summaryrefslogtreecommitdiffstats
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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/lib2to3/pgen2/token.py b/Lib/lib2to3/pgen2/token.py
index 61468b3..6a6d0b6 100755
--- a/Lib/lib2to3/pgen2/token.py
+++ b/Lib/lib2to3/pgen2/token.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
"""Token constants (from "token.h")."""
@@ -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