From b4c1f7c0741255e772276800adfd2270838f4d16 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Thu, 23 Jun 2016 00:41:26 -0700 Subject: [PATCH] search: apply flake8 suggestions Signed-off-by: David Aguilar --- cola/widgets/search.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cola/widgets/search.py b/cola/widgets/search.py index c3c42518..e555bcd7 100644 --- a/cola/widgets/search.py +++ b/cola/widgets/search.py @@ -142,7 +142,9 @@ class SearchEngine(object): def results(self): pass + class RevisionSearch(SearchEngine): + def results(self): query, opts = self.common_args() args = utils.shell_split(query) @@ -354,10 +356,9 @@ def search_commits(parent): return widget - if __name__ == '__main__': import sys app = QtGui.QApplication(sys.argv) - search = Search() - search.show() + widget = Search() + widget.show() sys.exit(app.exec_()) -- 2.11.4.GIT