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:
Lubomír Sedlář 2018-08-17 09:28:24 +02:00
parent 0c38ecdc85
commit 9278008ba0
1 changed files with 1 additions and 1 deletions

View File

@ -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