Easy spacing fixes, trailing stuff

Remove useless trailing \
Remove trailing spaces
Add missing empty lines

autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 .

Diff quickly checked.
This commit is contained in:
Laurent Bachelier 2013-03-15 20:01:49 +01:00
commit 7094931c92
231 changed files with 474 additions and 67 deletions

View file

@ -34,6 +34,7 @@ from .video import EuroparlVideo
__all__ = ['VideoPage']
class VideoPage(BasePage):
def get_video(self, video=None):
if video is None:
@ -67,7 +68,7 @@ class VideoPage(BasePage):
for span in self.parser.select(obj[0], 'span.ep_acronym, span.ep_theme'):
if span.text_content():
title += ' ' + span.text_content().strip()
return title
def set_details(self, v):
@ -89,7 +90,7 @@ class VideoPage(BasePage):
day=int(day),
hour=int(hour),
minute=int(minute))
obj = self.parser.select(self.document.getroot(), 'span.ep_subtitle', 1)
if obj is not None:
span = self.parser.select(obj, 'span.ep_date', 1)
@ -104,7 +105,7 @@ class VideoPage(BasePage):
day = m.group(5)
month = m.group(6)
year = m.group(7)
start = datetime.datetime(year=int(year),
month=int(month),
day=int(day),