record: tuple parameter unpacking is deprecated in py3k
authorRenato Cunha <renatoc@gmail.com>
Thu, 01 Jul 2010 19:27:03 -0300
changeset 11499 324cd681fa47
parent 11498 8fa85378c527
child 11500 b782a7eb9037
record: tuple parameter unpacking is deprecated in py3k
hgext/record.py
--- 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