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:
Laurent Bachelier 2014-10-10 23:04:08 +02:00
commit 448c06d125
142 changed files with 249 additions and 25 deletions

View file

@ -13,6 +13,7 @@ class RoadmapAmbiguity(RoadmapError):
def __init__(self, error):
RoadmapError.__init__(self, error)
class RoadmapSearchPage(Page):
def search(self, departure, arrival, departure_time, arrival_time):
match = -1
@ -46,6 +47,7 @@ class RoadmapSearchPage(Page):
raise RoadmapError('Unable to establish a roadmap with %s time at "%s"' % ('departure' if departure_time else 'arrival', time))
self.browser.submit()
class RoadmapResultsPage(Page):
def html_br_strip(self, text):
return "".join([l.strip() for l in text.split("\n")]).strip().replace(' ', '%20')
@ -96,6 +98,7 @@ class RoadmapResultsPage(Page):
self.browser[propname] = [ propvalue ]
self.browser.submit()
class RoadmapPage(Page):
def get_steps(self):
errors = []