str(namedpattern) should just return its name
This commit is contained in:
parent
f54193edf0
commit
b744a11e8e
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue