From: Olivier Matz Date: Fri, 15 Jun 2012 13:02:40 +0000 (+0200) Subject: cosmetic: replace "max" by "max_len" X-Git-Tag: v1.0~14 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d5d43cb0e52cacb457e5c96329e18bf54a2e0ea5;p=diff2html.git cosmetic: replace "max" by "max_len" max is the name of a builtin function: http://docs.python.org/library/functions.html#max Signed-off-by: Sergey Satskiy Signed-off-by: Olivier Matz --- diff --git a/diff2html.py b/diff2html.py index ad6eaee..14094de 100644 --- a/diff2html.py +++ b/diff2html.py @@ -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