From b69cae00b4a13cf306ec92d169b81c965a0865fc Mon Sep 17 00:00:00 2001 From: Jean Abou Samra Date: Mon, 30 Jan 2023 03:11:54 +0100 Subject: Fix lots of missing encoding="utf-8" parameters Some of these are probably unnecessary (ASCII-only content), but it's easier not to think about it. --- scripts/get_css_properties.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/get_css_properties.py') diff --git a/scripts/get_css_properties.py b/scripts/get_css_properties.py index 3afe98e1..85a077aa 100644 --- a/scripts/get_css_properties.py +++ b/scripts/get_css_properties.py @@ -28,6 +28,6 @@ if __name__ == "__main__": data = json.load(data_request) names = set([p['property'] for p in data if p['property'] != '--*']) - with open('../pygments/lexers/_css_builtins.py', 'w') as builtin_file: + with open('../pygments/lexers/_css_builtins.py', 'w', encoding='utf-8') as builtin_file: builtin_file.write(HEADER) builtin_file.write(format_lines('_css_properties', sorted(names))) -- cgit v1.2.1