From: Florian Schweikert Date: Wed, 28 Sep 2011 21:31:24 +0000 (+0200) Subject: just comments, fixme X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=1a61d38aec0b6cdd8dbee7ca385d38fa52355b07;p=pywienerlinien just comments, fixme --- diff --git a/gotovienna/routing.py b/gotovienna/routing.py index d8392a1..98d0573 100644 --- a/gotovienna/routing.py +++ b/gotovienna/routing.py @@ -54,7 +54,6 @@ def split_station(station): >>> split_station('Karlsplatz') ('Karlsplatz', 'Wien') """ - print "split:", station if len(station.split(',')) > 1: return (station[:station.rindex(',')].strip(), station.split(',')[-1].strip()) else: @@ -192,6 +191,7 @@ class rParser: if (y.find("-") > 0): return map(lambda z: time(*map(int, z.split(':'))), y.split('-')) else: + # FIXME Error if date in line (dateLineCross) return map(lambda z: time(*map(int, z.split(':'))), wrap(y, 5)) else: return [] diff --git a/scotty b/scotty index 920abba..bfc0e82 100755 --- a/scotty +++ b/scotty @@ -35,12 +35,9 @@ while not finished: if state == PageType.CORRECTION: try: cor = parser.get_correction() - print "A", args.origin, args.destination origin, origin_place = split_station(args.origin) destination, destination_place = split_station(args.destination) - print "B", origin, origin_place, destination, destination_place - # FIXME refactoring if cor.has_key('origin'): @@ -95,7 +92,6 @@ while not finished: destination_place = cor['destination_place'][int(l) - 1] - print origin, origin_place, destination, destination_place args.origin = '%s, %s' % (origin, origin_place) args.destination = '%s, %s' %(destination, destination_place)