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:
parent
c21d1f7925
commit
7094931c92
231 changed files with 474 additions and 67 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue