no more need to print format result

This commit is contained in:
Christophe Benz 2010-05-15 04:56:59 +02:00
commit 0c425a2e9b
6 changed files with 12 additions and 18 deletions

View file

@ -38,9 +38,9 @@ class Travel(ConsoleApplication):
@ConsoleApplication.command('Search stations')
def command_stations(self, pattern):
for backend, station in self.weboob.do('iter_station_search', pattern):
print self.format(station)
self.format(station)
@ConsoleApplication.command('List all departures on a special station')
def command_departures(self, station, arrival=None):
for backend, departure in self.weboob.do('iter_station_departures', station, arrival):
print self.format(departure)
self.format(departure)