power_enum: modify SVPtype stringification
authorDmitry Selyutin <ghostmansd@gmail.com>
Thu, 22 Jun 2023 19:07:59 +0000 (22:07 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Fri, 23 Jun 2023 07:40:44 +0000 (10:40 +0300)
src/openpower/decoder/power_enums.py

index 707e3986fb5778b198241ee99040c8086c92cf3e..300a4653f6aa6cc2c42ea71273aa27a5ecf8c6f2 100644 (file)
@@ -202,7 +202,7 @@ class SVPType(Enum):
     def _missing_(cls, desc):
         return {"1P": SVPType.P1, "2P": SVPType.P2, "2PM": SVPType.P2M}.get(desc)
 
-    def __repr__(self):
+    def __str__(self):
         return {
             SVPType.NONE: "NONE",
             SVPType.P1: "1P",