# HG changeset patch # User Martin von Zweigbergk # Date 1562944299 25200 # Node ID 2c3fd1bb2752b3af0f130c147b7860b5d7a20abc # Parent 7e034d44bd4ba89d0efdc0be0454cad9fce3bc2d py3: store to __doc__ as str (unicode on py3) diff -r 7e034d44bd4b -r 2c3fd1bb2752 hgext3rd/evolve/__init__.py --- 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)