From 619354fb2c9dd046d37221a3a5041dda47135e3e Mon Sep 17 00:00:00 2001 From: PouleyKetchoupp Date: Mon, 30 Mar 2020 23:02:38 +0200 Subject: Fixed errors in makerst pre-commit hook --- doc/tools/makerst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/tools') diff --git a/doc/tools/makerst.py b/doc/tools/makerst.py index 417fe59278..9de5eac31d 100755 --- a/doc/tools/makerst.py +++ b/doc/tools/makerst.py @@ -353,7 +353,7 @@ def make_rst_class(class_def, state, dry_run, output_dir): # type: (ClassDef, S class_name = class_def.name if dry_run: - f = open(os.devnull, "w") + f = open(os.devnull, "w", encoding="utf-8") else: f = open(os.path.join(output_dir, "class_" + class_name.lower() + ".rst"), "w", encoding="utf-8") -- cgit v1.2.3