From 81eb92a761a82bf60dc30203f63b753a67e58b9a Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Fri, 15 Mar 2013 02:14:15 +0100 Subject: [PATCH] fixed pep8 --- openslides/motion/views.py | 10 +++++----- openslides/utils/utils.py | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/openslides/motion/views.py b/openslides/motion/views.py index 77b4b5997..9748d7ec9 100644 --- a/openslides/motion/views.py +++ b/openslides/motion/views.py @@ -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. diff --git a/openslides/utils/utils.py b/openslides/utils/utils.py index da29ab8b3..4a6cfb5b5 100644 --- a/openslides/utils/utils.py +++ b/openslides/utils/utils.py @@ -157,8 +157,8 @@ def html_strong(string): return u"%s" % 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()) \ No newline at end of file + return diff.make_table(text1.splitlines(), text2.splitlines())