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 authored and davidism committed May 22, 2024
1 parent bc16dbf commit e660d44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/advanced.rst
Original file line number Diff line number Diff line change
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 e660d44

Please sign in to comment.