[elbe-devel] [PATCH] debianize: fix the text user interface

Christian Teklenborg chris at linutronix.de
Tue Jun 1 16:15:59 CEST 2021


Get rid of the python magic attributes in the text user interface.

Signed-off-by: Christian Teklenborg <chris at linutronix.de>
---
 elbepack/debianize/widgets/radio.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/debianize/widgets/radio.py b/elbepack/debianize/widgets/radio.py
index 85730480..34322463 100644
--- a/elbepack/debianize/widgets/radio.py
+++ b/elbepack/debianize/widgets/radio.py
@@ -25,7 +25,7 @@ class RadioGroup(Grid):
 
         self.radio_group = []
         for choice in enum_type.__dict__.keys():
-            if choice.startswith('-'):
+            if choice.startswith('_'):
                 continue
             RadioButton(self.radio_group,
                         label=choice.capitalize(),
-- 
2.20.1



More information about the elbe-devel mailing list