on master help sign in
Fix quantity of blank lines after code object.
commitcd9b494cb5871b2011893f19647e7651fb0382b6 authorstepshal <nessento@openmailbox.org> dateSun 10 Jul 2016, 21:44 (10 years ago) parent678b87f
8 files changed+9−1
examples/basic_engine.py+1 searx/engines/filecrop.py+1 searx/preferences.py+2 searx/results.py+1 searx/utils.py+1 searx/webapp.py+1 tests/unit/test_preferences.py+2 utils/fetch_currencies.py−1
examples/basic_engine.py+1
@@ -1,6 +1,7 @@
11
22categories = ['general'] # optional
33
4+
45def request(query, params):
56 '''pre-request callback
67 params<dict>:
searx/engines/filecrop.py+1
@@ -8,6 +8,7 @@ paging = True
88
99
1010class FilecropResultParser(HTMLParser):
11+
1112 def __init__(self):
1213 HTMLParser.__init__(self)
1314 self.__start_processing = False
searx/preferences.py+2
@@ -166,6 +166,7 @@ class SwitchableSetting(Setting):
166166
167167
168168class EnginesSetting(SwitchableSetting):
169+
169170 def _post_init(self):
170171 super(EnginesSetting, self)._post_init()
171172 transformed_choices = []
@@ -191,6 +192,7 @@ class EnginesSetting(SwitchableSetting):
191192
192193
193194class PluginsSetting(SwitchableSetting):
195+
194196 def _post_init(self):
195197 super(PluginsSetting, self)._post_init()
196198 transformed_choices = []
searx/results.py+1
@@ -91,6 +91,7 @@ def result_score(result):
9191
9292class ResultContainer(object):
9393 """docstring for ResultContainer"""
94+
9495 def __init__(self):
9596 super(ResultContainer, self).__init__()
9697 self.results = defaultdict(list)
searx/utils.py+1
@@ -74,6 +74,7 @@ def highlight_content(content, query):
7474
7575
7676class HTMLTextExtractor(HTMLParser):
77+
7778 def __init__(self):
7879 HTMLParser.__init__(self)
7980 self.result = []
searx/webapp.py+1
@@ -735,6 +735,7 @@ class ReverseProxyPathFix(object):
735735
736736 :param app: the WSGI application
737737 '''
738+
738739 def __init__(self, app):
739740 self.app = app
740741
tests/unit/test_preferences.py+2
@@ -4,6 +4,7 @@ from searx.testing import SearxTestCase
44
55
66class PluginStub(object):
7+
78 def __init__(self, id, default_on):
89 self.id = id
910 self.default_on = default_on
@@ -11,6 +12,7 @@ class PluginStub(object):
1112
1213class TestSettings(SearxTestCase):
1314 # map settings
15+
1416 def test_map_setting_invalid_initialization(self):
1517 with self.assertRaises(MissingArgumentException):
1618 setting = MapSetting(3, wrong_argument={'0': 0})
utils/fetch_currencies.py−1
@@ -37,7 +37,6 @@ def add_currency_name(name, iso4217):
3737
3838 db_names = db['names']
3939
40−
4140 if not isinstance(iso4217, basestring):
4241 print "problem", name, iso4217
4342 return