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