consistent __exit__() argument names

This commit is contained in:
Mike Fährmann
2024-10-11 16:43:28 +02:00
parent bca9a1a1e5
commit 1df09292b5
5 changed files with 5 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ class lazy():
def __enter__(self):
return self.buffer
def __exit__(self, exc, value, tb):
def __exit__(self, exc_type, exc_value, traceback):
# get content of old file
try:
with open(self.path, encoding="utf-8") as fp: