[elbe-devel] [PATCH 1/2] elbepack: qemu_firmware: make FirmwareFlashMode a normal Enum

Thomas Weißschuh thomas.weissschuh at linutronix.de
Tue Aug 6 10:27:00 CEST 2024


The values are meant to be used as symbolic constants.
The fact that they are a string are irrelevant.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/qemu_firmware.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/qemu_firmware.py b/elbepack/qemu_firmware.py
index 918c80cf012d..10f9df9596d7 100755
--- a/elbepack/qemu_firmware.py
+++ b/elbepack/qemu_firmware.py
@@ -26,7 +26,7 @@ class FirmwareTarget:
         )
 
 
-class FirmwareFlashMode(enum.StrEnum):
+class FirmwareFlashMode(enum.Enum):
     SPLIT = 'split'
     COMBINED = 'combined'
     STATELESS = 'stateless'

-- 
2.46.0



More information about the elbe-devel mailing list