Commit 2c3fd1bb authored by Martin von Zweigbergk's avatar Martin von Zweigbergk
Browse files

py3: store to __doc__ as str (unicode on py3)

parent 7e034d44bd4b
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment