[PATCH 5 of 9] churn extension: remove tuple parameter unpacking, as it's been deprecated in
Nicolas Dumazet
nicdumz at gmail.com
Thu Jul 1 22:21:38 CDT 2010
2010/7/2 Renato Cunha <renatoc at gmail.com>:
> hgext/churn.py | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
>
> # HG changeset patch
> # User Renato Cunha <renatoc at gmail.com>
> # Date 1278023223 10800
> # Node ID be82e9c22659856bfe041391f9ebe15f4c79e939
> # Parent 4085a4d5de97332e368254776bb671c02cf757bb
> churn extension: remove tuple parameter unpacking, as it's been deprecated in
> py3k.
>
> diff --git a/hgext/churn.py b/hgext/churn.py
> --- a/hgext/churn.py
> +++ b/hgext/churn.py
> @@ -149,7 +149,8 @@
>
> if opts.get('diffstat'):
> width -= 15
> - def format(name, (added, removed)):
> + def format(name, diffstat):
> + added, removed = diffstat
> return "%s %15s %s%s\n" % (pad(name, maxname),
> '+%d/-%d' % (added, removed),
> ui.label('+' * charnum(added),
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>
Looks good to me.
--
Nicolas Dumazet — NicDumZ
More information about the Mercurial-devel
mailing list