Fixed errors in makerst pre-commit hook
(cherry picked from commit 619354fb2c)
This commit is contained in:
committed by
Rémi Verschelde
parent
66e4c8be23
commit
d4c77e60c0
@ -341,7 +341,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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user