Fix tests on Python 2.6
It does not like the flags kwargs for re.sub(), which should not really be needed, since \W is case insensitive anyway. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
0c38ecdc85
commit
9278008ba0
@ -395,7 +395,7 @@ def get_volid(compose, arch, variant=None, disc_type=False,
|
||||
if compose.conf["restricted_volid"]:
|
||||
# Replace all non-alphanumeric characters and non-underscores) with
|
||||
# dashes.
|
||||
volid = re.sub(r"\W", "-", volid, flags=re.I)
|
||||
volid = re.sub(r"\W", "-", volid)
|
||||
|
||||
return volid
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user