str(namedpattern) should just return its name
This commit is contained in:
parent
f54193edf0
commit
b744a11e8e
@ -734,6 +734,9 @@ class NamedPattern(Pattern):
|
|||||||
s += ']>'
|
s += ']>'
|
||||||
return s
|
return s
|
||||||
|
|
||||||
|
def __str__(self) -> str:
|
||||||
|
return self.name
|
||||||
|
|
||||||
def __copy__(self) -> Pattern:
|
def __copy__(self) -> Pattern:
|
||||||
return Pattern.__copy__(self)
|
return Pattern.__copy__(self)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user