We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35233bd commit 89f08c5Copy full SHA for 89f08c5
doc/source/conf.py
@@ -65,8 +65,8 @@ def get_tutorial_version_requirements(tutorial_path: str) -> str:
65
previous_line_is_note = False
66
minimum_version = "0.0"
67
tutorial_path = Path(tutorial_path)
68
- with tutorial_path.open("r") as f:
69
- for line in f:
+ with tutorial_path.open(mode="rt", encoding="utf-8") as tuto:
+ for line in tuto:
70
if (version_flag in line) and previous_line_is_note:
71
minimum_version = line.strip(version_flag).split()[0]
72
break
0 commit comments