mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-16 19:11:25 +08:00
Use the correct field name in the PythonToken repr
This commit is contained in:
1 parent
bf5a4b7c2c
commit
f4912f6c17
1 file changed
+1
-1
@@ -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()))
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user