fixed pep8

This commit is contained in:
Oskar Hahn 2013-03-15 02:14:15 +01:00
parent d180b4f331
commit 81eb92a761
2 changed files with 8 additions and 8 deletions

View File

@ -338,11 +338,11 @@ class SupportView(SingleObjectMixin, QuestionMixin, RedirectView):
return True return True
def get_question(self): def get_question(self):
"""Return the question string.""" """Return the question string."""
if self.support: if self.support:
return _('Do you really want to support this motion?') return _('Do you really want to support this motion?')
else: else:
return _('Do you really want to unsupport this motion?') return _('Do you really want to unsupport this motion?')
def case_yes(self): def case_yes(self):
"""Append or remove the request.user from the motion. """Append or remove the request.user from the motion.

View File

@ -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())