Ignore extra-atcs lines which look like comments
Change-Id: I8054f4582ad93a5dd31a2d5de288250780ebbf3f
This commit is contained in:
parent
e30f37376d
commit
dfb806c896
@ -34,7 +34,7 @@ import yaml
|
||||
|
||||
MAILTO_RE = re.compile('mailto:(.*)')
|
||||
USERNAME_RE = re.compile('username:(.*)')
|
||||
EXTRA_ATC_RE = re.compile('[^:]*: ([^\(]*) \(([^@]*@[^\)]*)\) \[[^\[]*\]')
|
||||
EXTRA_ATC_RE = re.compile('^[^#][^:]*: ([^\(]*) \(([^@]*@[^\)]*)\) \[[^\[]*\]')
|
||||
PROGRAMS_URL = ('https://git.openstack.org/cgit/openstack/governance/plain'
|
||||
'/reference/programs.yaml')
|
||||
EXTRA_ATCS_URL = ('https://git.openstack.org/cgit/openstack/governance/plain'
|
||||
@ -200,7 +200,10 @@ def main():
|
||||
|
||||
writer = csv.writer(open('out/extra-atcs.csv', 'w'))
|
||||
for atc in get_extra_atcs(EXTRA_ATCS_URL):
|
||||
writer.writerow([''] + list(EXTRA_ATC_RE.match(atc).groups()))
|
||||
try:
|
||||
writer.writerow([''] + list(EXTRA_ATC_RE.match(atc).groups()))
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user