We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1940d9a commit 6d9ab7dCopy full SHA for 6d9ab7d
src/c2pa/c2pa.py
@@ -1170,7 +1170,6 @@ def __del__(self):
1170
"""
1171
try:
1172
# Only cleanup if not already closed and we have a valid stream
1173
- # Cache state in local variables to reduce attribute lookup overhead
1174
if hasattr(self, '_closed') and not self._closed:
1175
stream = self._stream
1176
if hasattr(self, '_stream') and stream:
@@ -1198,7 +1197,6 @@ def close(self):
1198
1197
Errors during cleanup are logged but not raised to ensure cleanup.
1199
Multiple calls to close() are handled gracefully.
1200
1201
1202
closed = self._closed
1203
if closed:
1204
return
0 commit comments