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

@ -40,6 +40,7 @@ class Station(CapBaseObject):
def __repr__(self):
return "<Station id=%r name=%r>" % (self.id, self.name)
class Departure(CapBaseObject):
"""
Describes a departure.
@ -62,6 +63,7 @@ class Departure(CapBaseObject):
return u"<Departure id=%r type=%r time=%r departure=%r arrival=%r>" % (
self.id, self.type, self.time.strftime('%H:%M'), self.departure_station, self.arrival_station)
class RoadStep(CapBaseObject):
"""
A step on a roadmap.
@ -73,11 +75,13 @@ class RoadStep(CapBaseObject):
arrival = StringField('Arrival station')
duration = DeltaField('Duration of this step')
class RoadmapError(UserError):
"""
Raised when the roadmap is unable to be calculated.
"""
class RoadmapFilters(CapBaseObject):
"""
Filters to get a roadmap.
@ -88,6 +92,7 @@ class RoadmapFilters(CapBaseObject):
def __init__(self):
CapBaseObject.__init__(self, '')
class ICapTravel(IBaseCap):
"""
Travel websites.