py3: store to __doc__ as str (unicode on py3)
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 12 Jul 2019 08:11:39 -0700
changeset 4761 2c3fd1bb2752
parent 4760 7e034d44bd4b
child 4762 75bc0a51809a
py3: store to __doc__ as str (unicode on py3)
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)