Small tweak to how repr() of Formatless() displays

This commit is contained in:
alicetries 2022-03-28 23:38:48 +01:00 committed by Jess Porter
parent 63025af311
commit 0435404ec3
1 changed files with 1 additions and 2 deletions

View File

@ -73,8 +73,7 @@ class Formatless(IMatchResponseParam):
def __init__(self, value: TYPE_MAYBELIT_VALUE):
self._value = _assure_lit(value)
def __repr__(self) -> str:
brepr = super().__repr__()
return f"Formatless({brepr})"
return f"Formatless({self._value!r})"
def match(self, server: IServer, arg: str) -> bool:
strip = formatting.strip(arg)
return self._value.match(server, strip)