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

@ -22,12 +22,15 @@ from weboob.capabilities.library import Book
from weboob.tools.browser import BasePage, BrowserUnavailable
from weboob.tools.mech import ClientForm
class SkipPage(BasePage):
pass
class HomePage(BasePage):
pass
def txt2date(s):
return date(*reversed([int(x) for x in s.split(' ')[-1].split('/')]))
@ -51,6 +54,7 @@ class RentedPage(BasePage):
book.date = txt2date(tr[start+5].text)
yield book
class HistoryPage(BasePage):
pass
@ -75,6 +79,7 @@ class BookedPage(BasePage):
book.late = False
yield book
class LoginPage(BasePage):
def login(self, login, passwd):
self.browser.select_form(predicate=lambda x: x.attrs.get('id','')=='aspnetForm')