From cfd868677ade5856c6d6d66f9314a71af3cd88a9 Mon Sep 17 00:00:00 2001 From: Phil Gyford Date: Wed, 13 Dec 2023 11:39:23 +0000 Subject: [PATCH] Fix error in docs conf.py --- docs/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index c810821..176e121 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -67,7 +67,8 @@ def get_entity(package, entity): `__init__.py`. """ path = os.path.join(os.path.dirname(__file__), "..", "ditto", "__init__.py") - with open(path).read() as init_py: + with open(path) as f: + init_py = f.read() find = "__%s__ = ['\"]([^'\"]+)['\"]" % entity return re.search(find, init_py).group(1)