diff hgext/record.py @ 11499:324cd681fa47

record: tuple parameter unpacking is deprecated in py3k
author Renato Cunha <renatoc@gmail.com>
date Thu, 01 Jul 2010 19:27:03 -0300
parents a5922547b5cc
children b782a7eb9037
line wrap: on
line diff
--- a/hgext/record.py	Thu Jul 01 19:27:02 2010 -0300
+++ b/hgext/record.py	Thu Jul 01 19:27:03 2010 -0300
@@ -186,7 +186,8 @@
             self.hunk = []
             self.stream = []
 
-        def addrange(self, (fromstart, fromend, tostart, toend, proc)):
+        def addrange(self, limits):
+            fromstart, fromend, tostart, toend, proc = limits
             self.fromline = int(fromstart)
             self.toline = int(tostart)
             self.proc = proc