summaryrefslogtreecommitdiff
path: root/sphinx/pycode/pgen2/token.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/pycode/pgen2/token.py')
-rwxr-xr-xsphinx/pycode/pgen2/token.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/pycode/pgen2/token.py b/sphinx/pycode/pgen2/token.py
index 56a40ce7..55bf5e8d 100755
--- a/sphinx/pycode/pgen2/token.py
+++ b/sphinx/pycode/pgen2/token.py
@@ -68,7 +68,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