str(namedpattern) should just return its name

This commit is contained in:
Jan Petykiewicz 2023-03-19 10:17:30 -07:00
parent c515ada2f8
commit 0917b02a31

View File

@ -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)