Show More
@@ -460,8 +460,8 b' def _updatedocstring():' | |||||
460 | longest = max(map(len, showview._table.keys())) |
|
460 | longest = max(map(len, showview._table.keys())) | |
461 | entries = [] |
|
461 | entries = [] | |
462 | for key in sorted(showview._table.keys()): |
|
462 | for key in sorted(showview._table.keys()): | |
463 |
entries.append( |
|
463 | entries.append(r' %s %s' % ( | |
464 |
key.ljust(longest), showview._table[key]._origdoc)) |
|
464 | pycompat.sysstr(key.ljust(longest)), showview._table[key]._origdoc)) | |
465 |
|
465 | |||
466 | cmdtable['show'][0].__doc__ = pycompat.sysstr('%s\n\n%s\n ') % ( |
|
466 | cmdtable['show'][0].__doc__ = pycompat.sysstr('%s\n\n%s\n ') % ( | |
467 | cmdtable['show'][0].__doc__.rstrip(), |
|
467 | cmdtable['show'][0].__doc__.rstrip(), |
@@ -64,8 +64,8 b' class _funcregistrarbase(object):' | |||||
64 | raise error.ProgrammingError(msg) |
|
64 | raise error.ProgrammingError(msg) | |
65 |
|
65 | |||
66 | if func.__doc__ and not util.safehasattr(func, '_origdoc'): |
|
66 | if func.__doc__ and not util.safehasattr(func, '_origdoc'): | |
67 |
doc = |
|
67 | func._origdoc = func.__doc__.strip() | |
68 |
func._origdoc |
|
68 | doc = pycompat.sysbytes(func._origdoc) | |
69 | func.__doc__ = pycompat.sysstr(self._formatdoc(decl, doc)) |
|
69 | func.__doc__ = pycompat.sysstr(self._formatdoc(decl, doc)) | |
70 |
|
70 | |||
71 | self._table[name] = func |
|
71 | self._table[name] = func |
General Comments 0
You need to be logged in to leave comments.
Login now