summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2022-07-03 01:46:18 +0200
committerBen Hutchings <ben@decadent.org.uk>2023-08-20 22:28:16 +0200
commitbb8cb7e1f2f9b2f7c96e085d889879e334168e6b (patch)
tree81da49e43ac83a9e9c1bb0301c7cf5893d5ed886 /scripts
parent5baa3b75c786b11d340b8706cc78bd8c7b71c737 (diff)
scripts/issue.py: Remove broken matching of versions and changerefs
This regexp never matched changerefs because it didn't expect space between the closing parentheses of versions and opening bracket of changerefs. This didn't matter because none of the scripts use versions or changerefs at the moment. So don't try to match them.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/issue.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/issue.py b/scripts/issue.py
index a7587e6d..31484f13 100644
--- a/scripts/issue.py
+++ b/scripts/issue.py
@@ -67,13 +67,9 @@ def get_issues(dir):
def parse_status(s):
ws = '\s*'
- versions = '(?P<versions>\((\S*,\s*)*\S*\s*\))'
- changerefs = '(?P<changerefs>\[(\S*,\s*)*\S*\s*\])'
state = '(?P<state>\S*)'
- statusre = re.compile(ws + state + ws +
- '(' + versions + '?)' +
- '(' + changerefs + '?)')
+ statusre = re.compile(ws + state)
m = statusre.match(s)
if not m:
raise SyntaxError

© 2014-2024 Faster IT GmbH | imprint | privacy policy