diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2019-03-28 01:25:56 +0000 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-03-28 01:49:25 +0000 |
commit | 291f75a24ec30e91aa6759edf49da587e4eff6d1 (patch) | |
tree | e435f9cc04553cef9cb92695fbc7927b880d79d4 /scripts | |
parent | 1615dab8112a0843cade958c6165e5530634ad81 (diff) |
Change parse_status() to return a dictionary
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/filter-active.py | 4 | ||||
-rw-r--r-- | scripts/issue.py | 2 |
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() |