m1n1.utils: Remove dead formatting

Signed-off-by: Martin Povišer <povik@protonmail.com>
This commit is contained in:
Martin Povišer 2021-10-16 22:34:33 +02:00 committed by Hector Martin
parent 145b1101c9
commit 301ba75b6b

View file

@ -239,7 +239,7 @@ class Register(Reloadable, metaclass=RegisterMeta):
return {k: getattr(self, k) for k in self._fields_list}
def str_fields(self):
return f"{', '.join(f'{k}={self._field_val(k)}' for k in self._fields_list)}"
return ', '.join(f'{k}={self._field_val(k)}' for k in self._fields_list)
def __str__(self):
return f"0x{self._value:x} ({self.str_fields()})"