From 6c966f2afa504570e511ee327f6fff01577ef0fc Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 9 Jan 2025 01:21:31 +0100 Subject: Significantly improve portability --- libmat2/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmat2/web.py') diff --git a/libmat2/web.py b/libmat2/web.py index e33288e..9bbd221 100644 --- a/libmat2/web.py +++ b/libmat2/web.py @@ -20,7 +20,7 @@ class CSSParser(abstract.AbstractParser): content = f.read() except UnicodeDecodeError: # pragma: no cover raise ValueError - cleaned = re.sub(r'/\*.*?\*/', '', content, 0, self.flags) + cleaned = re.sub(r'/\*.*?\*/', '', content, count=0, flags=self.flags) with open(self.output_filename, 'w', encoding='utf-8') as f: f.write(cleaned) return True -- cgit v1.3