From 17b996ebd1c01402fb49332e45bcedb5a8706d36 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 20 Sep 2024 10:17:30 +0200 Subject: fix DeprecationWarning for python <3.12 --- scripts/reqs2tex.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'scripts') diff --git a/scripts/reqs2tex.py b/scripts/reqs2tex.py index 1863b0d..31303ff 100755 --- a/scripts/reqs2tex.py +++ b/scripts/reqs2tex.py @@ -15,15 +15,17 @@ class KEY(StrEnum): DESCRIPTION = 'description' PRIORITY = 'priority' -class REQ_TYPE(StrEnum): - SYSTEM = 'system' - USER = 'user' - -class REQ_PRIORITY(StrEnum): - MUST = 'must' - SHOULD = 'should' - COULD = 'could' - WONT = 'will not' +REQ_TYPE = [ + 'system', + 'user', +] + +REQ_PRIORITY = [ + 'must', + 'should', + 'could', + 'will not', +] id_counter = 0 def make_id(item): -- cgit v1.2.3