mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-17 19:15:55 +08:00
Merge pull request #581 from asmeurer/whitespace-repr
Use repr() for the Whitespace repr
This commit is contained in:
@@ -248,6 +248,10 @@ class LeafWithNewLines(Leaf):
|
|||||||
return end_pos_line, end_pos_col
|
return end_pos_line, end_pos_col
|
||||||
|
|
||||||
|
|
||||||
|
@utf8_repr
|
||||||
|
def __repr__(self):
|
||||||
|
return "<%s: %r>" % (type(self).__name__, self.value)
|
||||||
|
|
||||||
class Whitespace(LeafWithNewLines):
|
class Whitespace(LeafWithNewLines):
|
||||||
"""Contains NEWLINE and ENDMARKER tokens."""
|
"""Contains NEWLINE and ENDMARKER tokens."""
|
||||||
__slots__ = ()
|
__slots__ = ()
|
||||||
|
|||||||
Reference in New Issue
Block a user