Skip to content

Commit

Permalink
Fix broken code example in docs under Advanced Patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
pbhuss committed Apr 17, 2024
1 parent 76cb841 commit 5d17fd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/advanced.rst
Expand Up @@ -435,6 +435,7 @@ defined as a context manager:
def __enter__(self):
path = os.path.join(self.home, "repo.db")
self.db = open_database(path)
return self
def __exit__(self, exc_type, exc_value, tb):
self.db.close()
Expand Down

0 comments on commit 5d17fd0

Please sign in to comment.