Use the correct field name in the PythonToken repr

This commit is contained in:
Aaron Meurer
2018-02-16 00:54:07 -05:00
committed by Dave Halter
parent bf5a4b7c2c
commit f4912f6c17

View File

@@ -244,7 +244,7 @@ class PythonToken(Token):
return tok_name[self.type]
def __repr__(self):
return ('TokenInfo(type=%s, string=%r, start=%r, prefix=%r)' %
return ('TokenInfo(type=%s, string=%r, start_pos=%r, prefix=%r)' %
self._replace(type=self._get_type_name()))