Mercurial > hg
comparison mercurial/util.py @ 40251:3c89227788a2
py3: build help of compression engines in bytes
Removes "b''" from help.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 13 Oct 2018 14:17:25 +0200 |
parents | e2697acd9381 |
children | 475921a3028c |
comparison
equal
deleted
inserted
replaced
40250:7759c26a3a0b | 40251:3c89227788a2 |
---|---|
3865 | 3865 |
3866 bt = engine.bundletype() | 3866 bt = engine.bundletype() |
3867 if not bt or not bt[0]: | 3867 if not bt or not bt[0]: |
3868 continue | 3868 continue |
3869 | 3869 |
3870 doc = pycompat.sysstr('``%s``\n %s') % ( | 3870 doc = b'``%s``\n %s' % (bt[0], pycompat.getdoc(engine.bundletype)) |
3871 bt[0], engine.bundletype.__doc__) | |
3872 | 3871 |
3873 value = docobject() | 3872 value = docobject() |
3874 value.__doc__ = doc | 3873 value.__doc__ = pycompat.sysstr(doc) |
3875 value._origdoc = engine.bundletype.__doc__ | 3874 value._origdoc = engine.bundletype.__doc__ |
3876 value._origfunc = engine.bundletype | 3875 value._origfunc = engine.bundletype |
3877 | 3876 |
3878 items[bt[0]] = value | 3877 items[bt[0]] = value |
3879 | 3878 |