mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 01:44:41 +01:00
build: force utf8 when updating backend docs from python script (#5721)
This commit is contained in:
parent
7b66ca132d
commit
29b8c71522
@ -33,7 +33,7 @@ def alter_doc(backend):
|
|||||||
raise ValueError("Didn't find doc file %s" % (doc_file,))
|
raise ValueError("Didn't find doc file %s" % (doc_file,))
|
||||||
new_file = doc_file+"~new~"
|
new_file = doc_file+"~new~"
|
||||||
altered = False
|
altered = False
|
||||||
with open(doc_file, "r") as in_file, open(new_file, "w") as out_file:
|
with open(doc_file, "r", encoding="utf_8") as in_file, open(new_file, "w", encoding="utf_8") as out_file:
|
||||||
in_docs = False
|
in_docs = False
|
||||||
for line in in_file:
|
for line in in_file:
|
||||||
if not in_docs:
|
if not in_docs:
|
||||||
|
Loading…
Reference in New Issue
Block a user