From d5d43cb0e52cacb457e5c96329e18bf54a2e0ea5 Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Fri, 15 Jun 2012 15:02:40 +0200 Subject: [PATCH] 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 --- diff2html.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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