[PATCH 4 of 6] i18n: use saved object to get actual function information if available
Yuya Nishihara
yuya at tcha.org
Mon Aug 21 12:46:35 UTC 2017
On Wed, 16 Aug 2017 01:19:04 +0900, FUJIWARA Katsunori wrote:
> # HG changeset patch
> # User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
> # Date 1502792844 -32400
> # Tue Aug 15 19:27:24 2017 +0900
> # Node ID b6dd19c795147e675b9caf58383b6cafd3f03534
> # Parent 1d204d17d51eb143f1ef66426cec1831cd8c93bf
> # Available At https://bitbucket.org/foozy/mercurial-wip
> # hg pull https://bitbucket.org/foozy/mercurial-wip -r b6dd19c79514
> # EXP-Topic i18n-fix-update-pot-issues
> i18n: use saved object to get actual function information if available
>
> To list up available compression types instead of
> ".. bundlecompressionmarker" in "hg help bundlespec" output, proxy
> object "docobject" is used, because:
>
> - current online help system requires that __doc__ of registered
> object (maybe, function) is already well formatted in reST syntax
>
> - bundletype() method of compressionengine classes is used to list up
> available compression types, but
>
> - __doc__ of bundletype() object (= "instancemethod") is read-only
Just curious. Any reason why we can't make the bundletype.__doc__ statically
formatted?
More information about the Mercurial-devel
mailing list