diff mercurial/registrar.py @ 43115:4aa72cdf616f

py3: delete b'' prefix from safehasattr arguments Differential Revision: https://phab.mercurial-scm.org/D7029
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 06 Oct 2019 20:17:41 -0700
parents 687b865b95ad
children 6a0e7bf73bb2
line wrap: on
line diff
--- a/mercurial/registrar.py	Tue Oct 08 19:35:30 2019 -0700
+++ b/mercurial/registrar.py	Sun Oct 06 20:17:41 2019 -0700
@@ -65,7 +65,7 @@
             msg = b'duplicate registration for name: "%s"' % name
             raise error.ProgrammingError(msg)
 
-        if func.__doc__ and not util.safehasattr(func, b'_origdoc'):
+        if func.__doc__ and not util.safehasattr(func, '_origdoc'):
             func._origdoc = func.__doc__.strip()
             doc = pycompat.sysbytes(func._origdoc)
             func.__doc__ = pycompat.sysstr(self._formatdoc(decl, doc))