[PATCH 3 of 4] help: format topic help using RST
Matt Mackall
mpm at selenic.com
Fri Jun 1 14:20:14 CDT 2012
On Fri, 2012-06-01 at 13:41 +0200, Olav Reinert wrote:
> # HG changeset patch
> # User Olav Reinert <seroton10 at gmail.com>
> # Date 1338545745 -7200
> # Node ID 1af1e72fd4927a7a872c6a4ebf1106d542828b07
> # Parent f7176d2d5d9e9a5fe8d454ad9668795d5fbbc749
> help: format topic help using RST
These are queued for default, thanks. One small change:
> + rst.extend(map(lambda l: " %s\n" % l, doc().splitlines()))
The map + lambda idiom has long-since fallen into disfavor. We now like:
rst.extend(" %s\n" % l for l in doc().splitlines())
or even:
rst += [" %s\n" % l for l in doc().splitlines())]
Fixed locally.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list