aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-09-20 10:17:30 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-09-20 10:17:30 +0200
commit17b996ebd1c01402fb49332e45bcedb5a8706d36 (patch)
tree99942d75730e1f59c3c9899063259687fa2bd1a4 /scripts
parent41ac21680ef13e2db543ff56728ecffe504d6850 (diff)
fix DeprecationWarning for python <3.12
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/reqs2tex.py20
1 files changed, 11 insertions, 9 deletions
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):