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

@ -55,7 +55,7 @@ class AloesBrowser(BaseBrowser):
assert isinstance(self.username, basestring)
assert isinstance(self.password, basestring)
if not self.is_on_page(HomePage):
self.location('%s://%s/index.aspx' \
self.location('%s://%s/index.aspx'
% (self.PROTOCOL, self.BASEURL),
no_login=True)
if not self.page.login(self.username, self.password) or \
@ -65,13 +65,13 @@ class AloesBrowser(BaseBrowser):
def get_rented_books_list(self):
if not self.is_on_page(RentedPage):
self.location('%s://%s/index.aspx?IdPage=45' \
self.location('%s://%s/index.aspx?IdPage=45'
% (self.PROTOCOL, self.BASEURL)
)
return self.page.get_list()
def get_booked_books_list(self):
if not self.is_on_page(BookedPage):
self.location('%s://%s/index.aspx?IdPage=44' \
self.location('%s://%s/index.aspx?IdPage=44'
% (self.PROTOCOL, self.BASEURL))
return self.page.get_list()