From e382573bed5670cf70d576cf63ab32a4c568e57c Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 4 Jun 2023 12:21:57 +0300 Subject: [PATCH] power_enums: simplify sel type string conversion --- src/openpower/decoder/power_enums.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openpower/decoder/power_enums.py b/src/openpower/decoder/power_enums.py index 1e512d8a..44555ea2 100644 --- a/src/openpower/decoder/power_enums.py +++ b/src/openpower/decoder/power_enums.py @@ -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] -- 2.30.2