mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 04:01:40 +01:00
Fix quantity of blank lines after code object.
This commit is contained in:
parent
678b87f9d5
commit
cd9b494cb5
@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
categories = ['general'] # optional
|
categories = ['general'] # optional
|
||||||
|
|
||||||
|
|
||||||
def request(query, params):
|
def request(query, params):
|
||||||
'''pre-request callback
|
'''pre-request callback
|
||||||
params<dict>:
|
params<dict>:
|
||||||
|
@ -8,6 +8,7 @@ paging = True
|
|||||||
|
|
||||||
|
|
||||||
class FilecropResultParser(HTMLParser):
|
class FilecropResultParser(HTMLParser):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
HTMLParser.__init__(self)
|
HTMLParser.__init__(self)
|
||||||
self.__start_processing = False
|
self.__start_processing = False
|
||||||
|
@ -166,6 +166,7 @@ class SwitchableSetting(Setting):
|
|||||||
|
|
||||||
|
|
||||||
class EnginesSetting(SwitchableSetting):
|
class EnginesSetting(SwitchableSetting):
|
||||||
|
|
||||||
def _post_init(self):
|
def _post_init(self):
|
||||||
super(EnginesSetting, self)._post_init()
|
super(EnginesSetting, self)._post_init()
|
||||||
transformed_choices = []
|
transformed_choices = []
|
||||||
@ -191,6 +192,7 @@ class EnginesSetting(SwitchableSetting):
|
|||||||
|
|
||||||
|
|
||||||
class PluginsSetting(SwitchableSetting):
|
class PluginsSetting(SwitchableSetting):
|
||||||
|
|
||||||
def _post_init(self):
|
def _post_init(self):
|
||||||
super(PluginsSetting, self)._post_init()
|
super(PluginsSetting, self)._post_init()
|
||||||
transformed_choices = []
|
transformed_choices = []
|
||||||
|
@ -91,6 +91,7 @@ def result_score(result):
|
|||||||
|
|
||||||
class ResultContainer(object):
|
class ResultContainer(object):
|
||||||
"""docstring for ResultContainer"""
|
"""docstring for ResultContainer"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(ResultContainer, self).__init__()
|
super(ResultContainer, self).__init__()
|
||||||
self.results = defaultdict(list)
|
self.results = defaultdict(list)
|
||||||
|
@ -74,6 +74,7 @@ def highlight_content(content, query):
|
|||||||
|
|
||||||
|
|
||||||
class HTMLTextExtractor(HTMLParser):
|
class HTMLTextExtractor(HTMLParser):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
HTMLParser.__init__(self)
|
HTMLParser.__init__(self)
|
||||||
self.result = []
|
self.result = []
|
||||||
|
@ -735,6 +735,7 @@ class ReverseProxyPathFix(object):
|
|||||||
|
|
||||||
:param app: the WSGI application
|
:param app: the WSGI application
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def __init__(self, app):
|
def __init__(self, app):
|
||||||
self.app = app
|
self.app = app
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@ from searx.testing import SearxTestCase
|
|||||||
|
|
||||||
|
|
||||||
class PluginStub(object):
|
class PluginStub(object):
|
||||||
|
|
||||||
def __init__(self, id, default_on):
|
def __init__(self, id, default_on):
|
||||||
self.id = id
|
self.id = id
|
||||||
self.default_on = default_on
|
self.default_on = default_on
|
||||||
@ -11,6 +12,7 @@ class PluginStub(object):
|
|||||||
|
|
||||||
class TestSettings(SearxTestCase):
|
class TestSettings(SearxTestCase):
|
||||||
# map settings
|
# map settings
|
||||||
|
|
||||||
def test_map_setting_invalid_initialization(self):
|
def test_map_setting_invalid_initialization(self):
|
||||||
with self.assertRaises(MissingArgumentException):
|
with self.assertRaises(MissingArgumentException):
|
||||||
setting = MapSetting(3, wrong_argument={'0': 0})
|
setting = MapSetting(3, wrong_argument={'0': 0})
|
||||||
|
@ -37,7 +37,6 @@ def add_currency_name(name, iso4217):
|
|||||||
|
|
||||||
db_names = db['names']
|
db_names = db['names']
|
||||||
|
|
||||||
|
|
||||||
if not isinstance(iso4217, basestring):
|
if not isinstance(iso4217, basestring):
|
||||||
print "problem", name, iso4217
|
print "problem", name, iso4217
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user