summaryrefslogtreecommitdiff
path: root/libmat2/web.py
diff options
context:
space:
mode:
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