summaryrefslogtreecommitdiff
path: root/libmat2/web.py
diff options
context:
space:
mode:
authorjvoisin2025-01-09 01:21:31 +0100
committerjvoisin2025-01-09 02:36:16 +0100
commit6c966f2afa504570e511ee327f6fff01577ef0fc (patch)
tree5171112a02af43bd303aabc131133ad22a3c26be /libmat2/web.py
parent70d236a06213ba3561637d6b02dd5094ef177dbb (diff)
Significantly improve portability0.13.5
Diffstat (limited to '')
-rw-r--r--libmat2/web.py2
1 files changed, 1 insertions, 1 deletions
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):
20 content = f.read() 20 content = f.read()
21 except UnicodeDecodeError: # pragma: no cover 21 except UnicodeDecodeError: # pragma: no cover
22 raise ValueError 22 raise ValueError
23 cleaned = re.sub(r'/\*.*?\*/', '', content, 0, self.flags) 23 cleaned = re.sub(r'/\*.*?\*/', '', content, count=0, flags=self.flags)
24 with open(self.output_filename, 'w', encoding='utf-8') as f: 24 with open(self.output_filename, 'w', encoding='utf-8') as f:
25 f.write(cleaned) 25 f.write(cleaned)
26 return True 26 return True