Skip to content

Commit

Permalink
gw_summary: fixed regex deprecationwarning
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmmacleod committed Mar 19, 2019
1 parent eeed9e2 commit 636e3cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/gw_summary
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,9 @@ try:
except NoSectionError:
pass
else:
base_reg = re.compile(r'-base\Z')
for key, val in config.nditems('html'):
if re.search('-base\Z', key):
if base_reg.search(key):
ifobases[key.rsplit('-', 1)[0]] = val
ifobases = OrderedDict(sorted(ifobases.items(), key=lambda x: x[0]))

Expand Down

0 comments on commit 636e3cb

Please sign in to comment.