Skip to content

Commit

Permalink
Merge pull request searx#616 from stepshal/blank
Browse files Browse the repository at this point in the history
Fix quantity of blank lines after code object.
  • Loading branch information
asciimoo authored Jul 10, 2016
2 parents 678b87f + cd9b494 commit baab6bc
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/basic_engine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

categories = ['general'] # optional


def request(query, params):
'''pre-request callback
params<dict>:
Expand Down
1 change: 1 addition & 0 deletions searx/engines/filecrop.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@


class FilecropResultParser(HTMLParser):

def __init__(self):
HTMLParser.__init__(self)
self.__start_processing = False
Expand Down
2 changes: 2 additions & 0 deletions searx/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def get_enabled(self):


class EnginesSetting(SwitchableSetting):

def _post_init(self):
super(EnginesSetting, self)._post_init()
transformed_choices = []
Expand All @@ -191,6 +192,7 @@ def transform_values(self, values):


class PluginsSetting(SwitchableSetting):

def _post_init(self):
super(PluginsSetting, self)._post_init()
transformed_choices = []
Expand Down
1 change: 1 addition & 0 deletions searx/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions searx/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def highlight_content(content, query):


class HTMLTextExtractor(HTMLParser):

def __init__(self):
HTMLParser.__init__(self)
self.result = []
Expand Down
1 change: 1 addition & 0 deletions searx/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ class ReverseProxyPathFix(object):
:param app: the WSGI application
'''

def __init__(self, app):
self.app = app

Expand Down
2 changes: 2 additions & 0 deletions tests/unit/test_preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@


class PluginStub(object):

def __init__(self, id, default_on):
self.id = id
self.default_on = default_on


class TestSettings(SearxTestCase):
# map settings

def test_map_setting_invalid_initialization(self):
with self.assertRaises(MissingArgumentException):
setting = MapSetting(3, wrong_argument={'0': 0})
Expand Down
1 change: 0 additions & 1 deletion utils/fetch_currencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def add_currency_name(name, iso4217):

db_names = db['names']


if not isinstance(iso4217, basestring):
print "problem", name, iso4217
return
Expand Down

0 comments on commit baab6bc

Please sign in to comment.