Remove utf8_repr from _compatibility.py

This commit is contained in:
Dave Halter
2020-07-24 01:26:36 +02:00
parent 736f616787
commit be5429c02c
3 changed files with 2 additions and 24 deletions
+1 -3
View File
@@ -48,7 +48,7 @@ try:
except ImportError:
from collections import Mapping
from parso._compatibility import utf8_repr, unicode
from parso._compatibility import unicode
from parso.tree import Node, BaseNode, Leaf, ErrorNode, ErrorLeaf, \
search_ancestor
from parso.python.prefix import split_prefix
@@ -175,7 +175,6 @@ class EndMarker(_LeafWithoutNewlines):
__slots__ = ()
type = 'endmarker'
@utf8_repr
def __repr__(self):
return "<%s: prefix=%s end_pos=%s>" % (
type(self).__name__, repr(self.prefix), self.end_pos
@@ -187,7 +186,6 @@ class Newline(PythonLeaf):
__slots__ = ()
type = 'newline'
@utf8_repr
def __repr__(self):
return "<%s: %s>" % (type(self).__name__, repr(self.value))