Skip to content

Commit

Permalink
Fix error in docs conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
philgyford committed Dec 13, 2023
1 parent 2267531 commit cfd8686
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit cfd8686

Please sign in to comment.