diff hgext/largefiles/lfutil.py @ 50951:d718eddf01d9

safehasattr: drop usage in favor of hasattr The two functions should now be equivalent at least in their usage in core.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 31 Aug 2023 23:56:15 +0200
parents 3934d85cf8e9
children e32f23f15623
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py	Thu Dec 08 15:33:19 2022 +0100
+++ b/hgext/largefiles/lfutil.py	Thu Aug 31 23:56:15 2023 +0200
@@ -814,7 +814,7 @@
     Otherwise, this returns the function to always write out (or
     ignore if ``not forcibly``) status.
     """
-    if forcibly is None and util.safehasattr(repo, '_largefilesenabled'):
+    if forcibly is None and hasattr(repo, '_largefilesenabled'):
         return repo._lfstatuswriters[-1]
     else:
         if forcibly: