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