cosmetic: replace "max" by "max_len"
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 15 Jun 2012 13:02:40 +0000 (15:02 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Thu, 9 Aug 2012 18:03:19 +0000 (20:03 +0200)
max is the name of a builtin function:
http://docs.python.org/library/functions.html#max

Signed-off-by: Sergey Satskiy <sergey.satskiy@gmail.com>
Signed-off-by: Olivier Matz <zer0@droids-corp.org>
diff2html.py

index ad6eaee..14094de 100644 (file)
@@ -283,8 +283,8 @@ def empty_buffer():
                 l0.append(l[0])
             if l[1] != None:
                 l1.append(l[1])
-        max = (len(l0) > len(l1)) and len(l0) or len(l1)
-        for i in range(max):
+        max_len = (len(l0) > len(l1)) and len(l0) or len(l1)
+        for i in range(max_len):
             s0, s1 = "", ""
             if i<len(l0):
                 s0 = l0[i]