diff options
Diffstat (limited to 'Lib/lib2to3/pgen2/token.py')
-rwxr-xr-x | Lib/lib2to3/pgen2/token.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/pgen2/token.py b/Lib/lib2to3/pgen2/token.py index 5f6612f5b30..2a55138e482 100755 --- a/Lib/lib2to3/pgen2/token.py +++ b/Lib/lib2to3/pgen2/token.py @@ -72,7 +72,7 @@ NT_OFFSET = 256 tok_name = {} for _name, _value in list(globals().items()): - if type(_value) is type(0): + if isinstance(_value, int): tok_name[_value] = _name |