changeset 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 8fa85378c527
children b782a7eb9037
files hgext/record.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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