churn: remove tuple parameter unpacking (deprecated in py3k)
authorRenato Cunha <renatoc@gmail.com>
Thu, 01 Jul 2010 19:27:03 -0300
changeset 11501 deb5d02ae91c
parent 11500 b782a7eb9037
child 11505 e5dd08f3fa03
churn: remove tuple parameter unpacking (deprecated in py3k)
hgext/churn.py
--- a/hgext/churn.py	Thu Jul 01 19:27:03 2010 -0300
+++ b/hgext/churn.py	Thu Jul 01 19:27:03 2010 -0300
@@ -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),