Skip to content

Commit

Permalink
Fix broken code example in docs under Advanced Patterns (#2708)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism authored May 22, 2024
2 parents 396c1b9 + e660d44 commit 52072a9
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 52072a9

Please sign in to comment.