Skip to content

Commit 56d381a

Browse files
committed
re-add #noqa for regex
1 parent b7a7db1 commit 56d381a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def parse_errata_children(e, children):
174174
e.releases.add(osgroup)
175175
elif c.tag == 'packages':
176176
pkg_str = c.text.replace('.rpm', '')
177-
pkg_re = re.compile('(\S+)-(?:(\d*):)?(.*)-(~?\w+)[.+](~?\S+)\.(\S+)$')
177+
pkg_re = re.compile('(\S+)-(?:(\d*):)?(.*)-(~?\w+)[.+](~?\S+)\.(\S+)$') # noqa
178178
name, epoch, ver, rel, dist, arch = pkg_re.match(pkg_str).groups()
179179
if dist:
180180
rel = '{0!s}-{1!s}'.format(rel, dist)

0 commit comments

Comments
 (0)