Browse Source

Merge pull request #616 from stepshal/blank

Fix quantity of blank lines after code object.
Adam Tauber 8 years ago
parent
commit
baab6bcb91

+ 1
- 0
examples/basic_engine.py View File

@@ -1,6 +1,7 @@
1 1
 
2 2
 categories = ['general'] # optional
3 3
 
4
+
4 5
 def request(query, params):
5 6
     '''pre-request callback
6 7
     params<dict>:

+ 1
- 0
searx/engines/filecrop.py View File

@@ -8,6 +8,7 @@ paging = True
8 8
 
9 9
 
10 10
 class FilecropResultParser(HTMLParser):
11
+
11 12
     def __init__(self):
12 13
         HTMLParser.__init__(self)
13 14
         self.__start_processing = False

+ 2
- 0
searx/preferences.py View File

@@ -166,6 +166,7 @@ class SwitchableSetting(Setting):
166 166
 
167 167
 
168 168
 class EnginesSetting(SwitchableSetting):
169
+
169 170
     def _post_init(self):
170 171
         super(EnginesSetting, self)._post_init()
171 172
         transformed_choices = []
@@ -191,6 +192,7 @@ class EnginesSetting(SwitchableSetting):
191 192
 
192 193
 
193 194
 class PluginsSetting(SwitchableSetting):
195
+
194 196
     def _post_init(self):
195 197
         super(PluginsSetting, self)._post_init()
196 198
         transformed_choices = []

+ 1
- 0
searx/results.py View File

@@ -91,6 +91,7 @@ def result_score(result):
91 91
 
92 92
 class ResultContainer(object):
93 93
     """docstring for ResultContainer"""
94
+
94 95
     def __init__(self):
95 96
         super(ResultContainer, self).__init__()
96 97
         self.results = defaultdict(list)

+ 1
- 0
searx/utils.py View File

@@ -74,6 +74,7 @@ def highlight_content(content, query):
74 74
 
75 75
 
76 76
 class HTMLTextExtractor(HTMLParser):
77
+
77 78
     def __init__(self):
78 79
         HTMLParser.__init__(self)
79 80
         self.result = []

+ 1
- 0
searx/webapp.py View File

@@ -735,6 +735,7 @@ class ReverseProxyPathFix(object):
735 735
 
736 736
     :param app: the WSGI application
737 737
     '''
738
+
738 739
     def __init__(self, app):
739 740
         self.app = app
740 741
 

+ 2
- 0
tests/unit/test_preferences.py View File

@@ -4,6 +4,7 @@ from searx.testing import SearxTestCase
4 4
 
5 5
 
6 6
 class PluginStub(object):
7
+
7 8
     def __init__(self, id, default_on):
8 9
         self.id = id
9 10
         self.default_on = default_on
@@ -11,6 +12,7 @@ class PluginStub(object):
11 12
 
12 13
 class TestSettings(SearxTestCase):
13 14
     # map settings
15
+
14 16
     def test_map_setting_invalid_initialization(self):
15 17
         with self.assertRaises(MissingArgumentException):
16 18
             setting = MapSetting(3, wrong_argument={'0': 0})

+ 0
- 1
utils/fetch_currencies.py View File

@@ -37,7 +37,6 @@ def add_currency_name(name, iso4217):
37 37
 
38 38
     db_names = db['names']
39 39
 
40
-
41 40
     if not isinstance(iso4217, basestring):
42 41
         print "problem", name, iso4217
43 42
         return