Fix quantity of blank lines after code object.

This commit is contained in:
stepshal 2016-07-10 21:44:27 +07:00
parent 678b87f9d5
commit cd9b494cb5
8 changed files with 9 additions and 1 deletions

View file

@ -8,6 +8,7 @@ paging = True
class FilecropResultParser(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self.__start_processing = False

View file

@ -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 = []

View file

@ -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)

View file

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

View file

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