Skip to content

Commit 9a00554

Browse files
committed
fix doc builder
1 parent e913b14 commit 9a00554

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

doc/conf.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@
1212
# -- Project information -----------------------------------------------------
1313
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
1414

15-
import tomllib
15+
import toml
1616
from datetime import datetime
1717
from pathlib import Path
18-
_pyproject_path = Path(__file__).resolve().parent.parent / "pyproject.toml"
19-
with open(_pyproject_path, "rb") as f:
20-
_pyproject = tomllib.load(f)
18+
_pyproject = toml.load(Path(__file__).resolve().parent.parent / "pyproject.toml")
2119
_author = ", ".join(_pyproject["tool"]["poetry"]["authors"])
2220
_year = datetime.now().year
2321

0 commit comments

Comments
 (0)