Skip to content
Snippets Groups Projects
Commit 59db74c7 authored by Bienchen's avatar Bienchen
Browse files

Enable documentation parser to deal with unicode

parent 6e62d68d
Branches
Tags
No related merge requests found
......@@ -31,7 +31,8 @@ def _RequireCopy(in_name, out_name):
pattern = re.compile(r'\.\.\s+image\:\:\s+([a-zA-Z0-9_\-//]+\.png|[a-zA-Z0-9_\-//]+\.jpg)')
def _CheckImage(in_name):
file = open(in_name, "r")
file = open(in_name, "r", encoding='utf8')
print("IN", in_name)
text = file.read()
picture_list = pattern.findall(text)
file.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment