Browse Source

Fix quantity of blank lines after code object.

stepshal 8 years ago
parent
commit
cd9b494cb5

+ 1
- 0
examples/basic_engine.py View File

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

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

8
 
8
 
9
 
9
 
10
 class FilecropResultParser(HTMLParser):
10
 class FilecropResultParser(HTMLParser):
11
+
11
     def __init__(self):
12
     def __init__(self):
12
         HTMLParser.__init__(self)
13
         HTMLParser.__init__(self)
13
         self.__start_processing = False
14
         self.__start_processing = False

+ 2
- 0
searx/preferences.py View File

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

+ 1
- 0
searx/results.py View File

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

+ 1
- 0
searx/utils.py View File

74
 
74
 
75
 
75
 
76
 class HTMLTextExtractor(HTMLParser):
76
 class HTMLTextExtractor(HTMLParser):
77
+
77
     def __init__(self):
78
     def __init__(self):
78
         HTMLParser.__init__(self)
79
         HTMLParser.__init__(self)
79
         self.result = []
80
         self.result = []

+ 1
- 0
searx/webapp.py View File

735
 
735
 
736
     :param app: the WSGI application
736
     :param app: the WSGI application
737
     '''
737
     '''
738
+
738
     def __init__(self, app):
739
     def __init__(self, app):
739
         self.app = app
740
         self.app = app
740
 
741
 

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

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

+ 0
- 1
utils/fetch_currencies.py View File

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