From 95de791cc559855e0540dcd901893b4fe8e9afe1 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 19 Apr 2022 12:57:37 +0000 Subject: [PATCH] selectable_int: make FieldSelectableInt.__repr__ more flexible --- src/openpower/decoder/selectable_int.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpower/decoder/selectable_int.py b/src/openpower/decoder/selectable_int.py index 9e1495d5..81e5a9f4 100644 --- a/src/openpower/decoder/selectable_int.py +++ b/src/openpower/decoder/selectable_int.py @@ -120,7 +120,7 @@ class FieldSelectableInt: return fi def __repr__(self): - return "FieldSelectableInt(si=%s, br=%s)" % (self.si, self.br) + return f"{self.__class__.__name__}(si={self.si}, br={self.br})" def asint(self, msb0=False): res = 0 -- 2.30.2