Skip to content

Commit 89f08c5

Browse files
committed
Fix decoding error
1 parent 35233bd commit 89f08c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def get_tutorial_version_requirements(tutorial_path: str) -> str:
6565
previous_line_is_note = False
6666
minimum_version = "0.0"
6767
tutorial_path = Path(tutorial_path)
68-
with tutorial_path.open("r") as f:
69-
for line in f:
68+
with tutorial_path.open(mode="rt", encoding="utf-8") as tuto:
69+
for line in tuto:
7070
if (version_flag in line) and previous_line_is_note:
7171
minimum_version = line.strip(version_flag).split()[0]
7272
break

0 commit comments

Comments
 (0)