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)