rename "none" __repr__ to "NONE" in SVExtra and SelType
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 3 Jun 2023 18:13:00 +0000 (19:13 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Dec 2023 19:26:19 +0000 (19:26 +0000)
src/openpower/decoder/power_enums.py

index 93ad05bcb85829c2be9daf45d2326426f6a8250d..f4fe351517a42e83cff07828d87f23818dd709ca 100644 (file)
@@ -241,7 +241,7 @@ class SVExtra(Enum):
 
     def __repr__(self):
         return {
-            SVExtra.NONE: "none",
+            SVExtra.NONE: "NONE",
             SVExtra.Idx0: "extra0",
             SVExtra.Idx1: "extra1",
             SVExtra.Idx2: "extra2",
@@ -971,7 +971,7 @@ class SelType(Enum):
 
     def __repr__(self):
         return {
-            SelType.NONE: "none",
+            SelType.NONE: "NONE",
             SelType.SRC: "src",
             SelType.DST: "dst",
         }[self]