summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2019-03-28 01:25:56 +0000
committerBen Hutchings <ben@decadent.org.uk>2019-03-28 01:49:25 +0000
commit291f75a24ec30e91aa6759edf49da587e4eff6d1 (patch)
treee435f9cc04553cef9cb92695fbc7927b880d79d4 /scripts
parent1615dab8112a0843cade958c6165e5530634ad81 (diff)
Change parse_status() to return a dictionary
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/filter-active.py4
-rw-r--r--scripts/issue.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/filter-active.py b/scripts/filter-active.py
index 0de1dbbc..08ba86c1 100755
--- a/scripts/filter-active.py
+++ b/scripts/filter-active.py
@@ -13,8 +13,8 @@ def filter_out_states(issues, inc_releases, exc_releases, states, notstates):
# Current state must be within 'states' (if specified), and
# must not be within 'notstates' (if specified).
m = parse_status(i.status(release))
- if ((m.group('state') in states if states else True) and
- (m.group('state') not in notstates if notstates else True)):
+ if ((m['state'] in states if states else True) and
+ (m['state'] not in notstates if notstates else True)):
filteredissues.append(i)
break
diff --git a/scripts/issue.py b/scripts/issue.py
index 6aee8912..a7587e6d 100644
--- a/scripts/issue.py
+++ b/scripts/issue.py
@@ -78,4 +78,4 @@ def parse_status(s):
if not m:
raise SyntaxError
else:
- return m
+ return m.groupdict()

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