From 291f75a24ec30e91aa6759edf49da587e4eff6d1 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Thu, 28 Mar 2019 01:25:56 +0000 Subject: Change parse_status() to return a dictionary --- scripts/filter-active.py | 4 ++-- scripts/issue.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') 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() -- cgit v1.2.3