mercurial/util.py
changeset 50928 d718eddf01d9
parent 50753 a2df74853f8d
child 50929 18c8c18993f0
--- a/mercurial/util.py	Thu Dec 08 15:33:19 2022 +0100
+++ b/mercurial/util.py	Thu Aug 31 23:56:15 2023 +0200
@@ -2583,7 +2583,7 @@
             self._fp.close()
 
     def __del__(self):
-        if safehasattr(self, '_fp'):  # constructor actually did something
+        if hasattr(self, '_fp'):  # constructor actually did something
             self.discard()
 
     def __enter__(self):