fixed pep8
This commit is contained in:
parent
d180b4f331
commit
81eb92a761
@ -157,8 +157,8 @@ def html_strong(string):
|
|||||||
return u"<strong>%s</strong>" % string
|
return u"<strong>%s</strong>" % string
|
||||||
|
|
||||||
|
|
||||||
def htmldiff(rev1, rev2):
|
def htmldiff(text1, text2):
|
||||||
"""Return string of html diff between two strings (rev1 and rev2)"""
|
"""Return string of html diff between two strings (text1 and text2)"""
|
||||||
|
|
||||||
diff = difflib.HtmlDiff(wrapcolumn=60)
|
diff = difflib.HtmlDiff(wrapcolumn=60)
|
||||||
return diff.make_table(rev1.splitlines(), rev2.splitlines())
|
return diff.make_table(text1.splitlines(), text2.splitlines())
|
||||||
|
Loading…
Reference in New Issue
Block a user