fixed pep8
This commit is contained in:
parent
d180b4f331
commit
81eb92a761
@ -338,11 +338,11 @@ class SupportView(SingleObjectMixin, QuestionMixin, RedirectView):
|
||||
return True
|
||||
|
||||
def get_question(self):
|
||||
"""Return the question string."""
|
||||
if self.support:
|
||||
return _('Do you really want to support this motion?')
|
||||
else:
|
||||
return _('Do you really want to unsupport this motion?')
|
||||
"""Return the question string."""
|
||||
if self.support:
|
||||
return _('Do you really want to support this motion?')
|
||||
else:
|
||||
return _('Do you really want to unsupport this motion?')
|
||||
|
||||
def case_yes(self):
|
||||
"""Append or remove the request.user from the motion.
|
||||
|
@ -157,8 +157,8 @@ def html_strong(string):
|
||||
return u"<strong>%s</strong>" % string
|
||||
|
||||
|
||||
def htmldiff(rev1, rev2):
|
||||
"""Return string of html diff between two strings (rev1 and rev2)"""
|
||||
def htmldiff(text1, text2):
|
||||
"""Return string of html diff between two strings (text1 and text2)"""
|
||||
|
||||
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