Skip to content

Commit

Permalink
Ugh, like an animal
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Apr 16, 2023
1 parent 74c4fd1 commit d432ce3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
MATCH_PYTHON = re.compile(r"\s+python\: \"(\d\.\d\d)\"").match
# Avoid dependency on a YAML lib using a questionable hack.
for line in Path(".readthedocs.yaml").read_text().splitlines():
if m := MATCH_PYTHON(line):
m = MATCH_PYTHON(line)
if m:
DOCS_PYTHON = m.group(1)
break

Expand Down

0 comments on commit d432ce3

Please sign in to comment.