SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
Fix quantity of blank lines after code object.
stepshalcd9b494cb587
diff --git a/examples/basic_engine.py b/examples/basic_engine.pyindex 3428f67fb..32c173016 100644--- a/examples/basic_engine.py+++ b/examples/basic_engine.py@@ -1,6 +1,7 @@categories = ['general'] # optional+def request(query, params):'''pre-request callbackparams<dict>:diff --git a/searx/engines/filecrop.py b/searx/engines/filecrop.pyindex 89dc77697..71665bd4e 100644--- a/searx/engines/filecrop.py+++ b/searx/engines/filecrop.py@@ -8,6 +8,7 @@ paging = Trueclass FilecropResultParser(HTMLParser):+def __init__(self):HTMLParser.__init__(self)self.__start_processing = Falsediff --git a/searx/preferences.py b/searx/preferences.pyindex dd9133ddb..e19ae7502 100644--- a/searx/preferences.py+++ b/searx/preferences.py@@ -166,6 +166,7 @@ class SwitchableSetting(Setting):class EnginesSetting(SwitchableSetting):+def _post_init(self):super(EnginesSetting, self)._post_init()transformed_choices = []@@ -191,6 +192,7 @@ class EnginesSetting(SwitchableSetting):class PluginsSetting(SwitchableSetting):+def _post_init(self):super(PluginsSetting, self)._post_init()transformed_choices = []diff --git a/searx/results.py b/searx/results.pyindex dcd966ef7..4bb0de0d8 100644--- a/searx/results.py+++ b/searx/results.py@@ -91,6 +91,7 @@ def result_score(result):class ResultContainer(object):"""docstring for ResultContainer"""+def __init__(self):super(ResultContainer, self).__init__()self.results = defaultdict(list)diff --git a/searx/utils.py b/searx/utils.pyindex a444cd3cf..219135a4b 100644--- a/searx/utils.py+++ b/searx/utils.py@@ -74,6 +74,7 @@ def highlight_content(content, query):class HTMLTextExtractor(HTMLParser):+def __init__(self):HTMLParser.__init__(self)self.result = []diff --git a/searx/webapp.py b/searx/webapp.pyindex 2093bb0b4..00a203636 100644--- a/searx/webapp.py+++ b/searx/webapp.py@@ -735,6 +735,7 @@ class ReverseProxyPathFix(object)::param app: the WSGI application'''+def __init__(self, app):self.app = appdiff --git a/tests/unit/test_preferences.py b/tests/unit/test_preferences.pyindex e418c0af4..c17350809 100644--- a/tests/unit/test_preferences.py+++ b/tests/unit/test_preferences.py@@ -4,6 +4,7 @@ from searx.testing import SearxTestCaseclass PluginStub(object):+def __init__(self, id, default_on):self.id = idself.default_on = default_on@@ -11,6 +12,7 @@ class PluginStub(object):class TestSettings(SearxTestCase):# map settings+def test_map_setting_invalid_initialization(self):with self.assertRaises(MissingArgumentException):setting = MapSetting(3, wrong_argument={'0': 0})diff --git a/utils/fetch_currencies.py b/utils/fetch_currencies.pyindex 201b32195..46d98c35e 100644--- a/utils/fetch_currencies.py+++ b/utils/fetch_currencies.py@@ -37,7 +37,6 @@ def add_currency_name(name, iso4217):db_names = db['names']-if not isinstance(iso4217, basestring):print "problem", name, iso4217return