mercurial/cmdutil.py
changeset 50928 d718eddf01d9
parent 50910 1270677d740b
child 50929 18c8c18993f0
--- a/mercurial/cmdutil.py	Thu Dec 08 15:33:19 2022 +0100
+++ b/mercurial/cmdutil.py	Thu Aug 31 23:56:15 2023 +0200
@@ -1449,7 +1449,7 @@
         if returnrevlog:
             if isinstance(r, revlog.revlog):
                 pass
-            elif util.safehasattr(r, '_revlog'):
+            elif hasattr(r, '_revlog'):
                 r = r._revlog  # pytype: disable=attribute-error
             elif r is not None:
                 raise error.InputError(