power_enums: simplify sel type string conversion
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 4 Jun 2023 09:21:57 +0000 (12:21 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sun, 4 Jun 2023 09:34:28 +0000 (12:34 +0300)
src/openpower/decoder/power_enums.py

index 1e512d8a9d70abcaae55c86a8f0faf148df25ab3..44555ea2dffec8a97db8189834c3bf271f915115 100644 (file)
@@ -972,11 +972,11 @@ class SelType(Enum):
     SRC = 's'
     DST = 'd'
 
-    def __repr__(self):
+    def __str__(self):
         return {
             SelType.NONE: "NONE",
-            SelType.SRC: "src",
-            SelType.DST: "dst",
+            SelType.SRC: "SRC",
+            SelType.DST: "DST",
         }[self]