From 9278008ba020dce4b9e25a11cda9fe911e617c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Fri, 17 Aug 2018 09:28:24 +0200 Subject: [PATCH] Fix tests on Python 2.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ář --- pungi/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pungi/util.py b/pungi/util.py index 65f3fe61..3a31ca87 100644 --- a/pungi/util.py +++ b/pungi/util.py @@ -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