pep8 blank lines fixes
flake8 --select W391,E302,E301,E304 autopep8 can't fix W391 even though it claims it can. Fixed using a simple custom script.
This commit is contained in:
parent
be2c8bd789
commit
448c06d125
142 changed files with 249 additions and 25 deletions
|
|
@ -36,6 +36,7 @@ class HomePage(Page):
|
|||
class SearchPage(Page):
|
||||
""" Page which contains results as a list of series
|
||||
"""
|
||||
|
||||
def iter_subtitles(self, language):
|
||||
list_result = self.parser.select(self.document.getroot(), 'div.left_articles ul')
|
||||
if len(list_result) > 0:
|
||||
|
|
@ -53,6 +54,7 @@ class SearchPage(Page):
|
|||
class SeriePage(Page):
|
||||
""" Page of all seasons
|
||||
"""
|
||||
|
||||
def iter_subtitles(self, language, only_one_season=False):
|
||||
# handle the current season
|
||||
last_table_line = self.parser.select(self.document.getroot(), 'table#table5 tr')[-1]
|
||||
|
|
@ -80,6 +82,7 @@ class SeriePage(Page):
|
|||
class SeasonPage(Page):
|
||||
""" Page of a season with the right language
|
||||
"""
|
||||
|
||||
def get_subtitle(self):
|
||||
filename_line = self.parser.select(self.document.getroot(), 'img[alt=filename]', 1).getparent().getparent()
|
||||
name = unicode(self.parser.select(filename_line, 'td')[2].text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue