changeset 42596 | 83666f011679 |
parent 42348 | de65ae32b82d |
child 43076 | 2372284d9457 |
--- a/mercurial/registrar.py Fri Jun 28 12:59:21 2019 -0700 +++ b/mercurial/registrar.py Tue Jul 09 00:03:10 2019 -0700 @@ -64,8 +64,8 @@ raise error.ProgrammingError(msg) if func.__doc__ and not util.safehasattr(func, '_origdoc'): - doc = pycompat.sysbytes(func.__doc__).strip() - func._origdoc = doc + func._origdoc = func.__doc__.strip() + doc = pycompat.sysbytes(func._origdoc) func.__doc__ = pycompat.sysstr(self._formatdoc(decl, doc)) self._table[name] = func