mirror of
https://github.com/davidhalter/parso.git
synced 2026-03-01 12:57:14 +08:00
Use the correct field name in the PythonToken repr
This commit is contained in:
committed by
Dave Halter
parent
bf5a4b7c2c
commit
f4912f6c17
@@ -244,7 +244,7 @@ class PythonToken(Token):
|
|||||||
return tok_name[self.type]
|
return tok_name[self.type]
|
||||||
|
|
||||||
def __repr__(self):
|
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()))
|
self._replace(type=self._get_type_name()))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user