[Reproducible-commits] [debbindiff] 01/03: Use LINESIZE constant directly in convert()
Jérémy Bobbio
lunar at moszumanska.debian.org
Sat Mar 28 17:04:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository debbindiff.
commit f567f2a6a50a77e81c415dfdc91f724daded13bd
Author: Jérémy Bobbio <lunar at debian.org>
Date: Sat Mar 28 18:03:31 2015 +0100
Use LINESIZE constant directly in convert()
---
debbindiff/presenters/html.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/debbindiff/presenters/html.py b/debbindiff/presenters/html.py
index 1c1295a..d3a7241 100644
--- a/debbindiff/presenters/html.py
+++ b/debbindiff/presenters/html.py
@@ -253,7 +253,7 @@ def linediff(s, t):
return r1, r2
-def convert(s, linesize=0, ponct=0):
+def convert(s, ponct=0):
i = 0
t = u""
for c in s:
@@ -282,10 +282,10 @@ def convert(s, linesize=0, ponct=0):
t += c
i += 1
- if linesize and (WORDBREAK.count(c) == 1):
+ if WORDBREAK.count(c) == 1:
t += u''
i = 0
- if linesize and i > linesize:
+ if i > LINESIZE:
i = 0
t += u""
@@ -323,7 +323,7 @@ def output_line(print_func, s1, s2):
if s1 is not None:
print_func(u'<td class="diffline">%d </td>' % line1)
print_func(u'<td class="diffpresent">')
- print_func(convert(s1, linesize=LINESIZE, ponct=1))
+ print_func(convert(s1, ponct=1))
print_func(u'</td>')
else:
s1 = ""
@@ -332,7 +332,7 @@ def output_line(print_func, s1, s2):
if s2 is not None:
print_func(u'<td class="diffline">%d </td>' % line2)
print_func(u'<td class="diffpresent">')
- print_func(convert(s2, linesize=LINESIZE, ponct=1))
+ print_func(convert(s2, ponct=1))
print_func(u'</td>')
else:
s2 = ""
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debbindiff.git
More information about the Reproducible-commits
mailing list