From bb8cb7e1f2f9b2f7c96e085d889879e334168e6b Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sun, 3 Jul 2022 01:46:18 +0200 Subject: 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. --- scripts/issue.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'scripts') 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\((\S*,\s*)*\S*\s*\))' - changerefs = '(?P\[(\S*,\s*)*\S*\s*\])' state = '(?P\S*)' - statusre = re.compile(ws + state + ws + - '(' + versions + '?)' + - '(' + changerefs + '?)') + statusre = re.compile(ws + state) m = statusre.match(s) if not m: raise SyntaxError -- cgit v1.2.3