Mercurial > evolve
changeset 4761:2c3fd1bb2752
py3: store to __doc__ as str (unicode on py3)
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 12 Jul 2019 08:11:39 -0700 |
parents | 7e034d44bd4b |
children | 75bc0a51809a |
files | hgext3rd/evolve/__init__.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/__init__.py Wed Jul 17 12:47:20 2019 -0700 +++ b/hgext3rd/evolve/__init__.py Fri Jul 12 08:11:39 2019 -0700 @@ -278,6 +278,7 @@ lock as lockmod, node, patch, + pycompat, revset, scmutil, ) @@ -887,7 +888,7 @@ ui = args[0] ui.warn(deprecationwarning) util.checksignature(fn)(*args, **kwargs) - newfn.__doc__ = deprecationwarning + ' (DEPRECATED)' + newfn.__doc__ = pycompat.sysstr(deprecationwarning + ' (DEPRECATED)') cmdwrapper = eh.command(oldalias, opts, synopsis) cmdwrapper(newfn)