diff -r 7a8ea1397816 -r d718eddf01d9 mercurial/registrar.py --- a/mercurial/registrar.py Thu Dec 08 15:33:19 2022 +0100 +++ b/mercurial/registrar.py Thu Aug 31 23:56:15 2023 +0200 @@ -10,7 +10,6 @@ configitems, error, pycompat, - util, ) # unlike the other registered items, config options are neither functions or @@ -64,7 +63,7 @@ msg = b'duplicate registration for name: "%s"' % name raise error.ProgrammingError(msg) - if func.__doc__ and not util.safehasattr(func, '_origdoc'): + if func.__doc__ and not hasattr(func, '_origdoc'): func._origdoc = func.__doc__.strip() doc = pycompat.sysbytes(func._origdoc) func.__doc__ = pycompat.sysstr(self._formatdoc(decl, doc))