Skip to content

Commit

Permalink
re-add #noqa for regex
Browse files Browse the repository at this point in the history
  • Loading branch information
furlongm committed Feb 18, 2020
1 parent b7a7db1 commit 56d381a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def parse_errata_children(e, children):
e.releases.add(osgroup)
elif c.tag == 'packages':
pkg_str = c.text.replace('.rpm', '')
pkg_re = re.compile('(\S+)-(?:(\d*):)?(.*)-(~?\w+)[.+](~?\S+)\.(\S+)$')
pkg_re = re.compile('(\S+)-(?:(\d*):)?(.*)-(~?\w+)[.+](~?\S+)\.(\S+)$') # noqa
name, epoch, ver, rel, dist, arch = pkg_re.match(pkg_str).groups()
if dist:
rel = '{0!s}-{1!s}'.format(rel, dist)
Expand Down

0 comments on commit 56d381a

Please sign in to comment.