def show_bus_info(bus_no): bus = Transit(bus_no) fmt = "%s, %s, %s" result = "%s\n" % bus_no r = bus.last_stop("17082410", 6) print r result += "\n".join([fmt % x for x in r]) result += "\n" r = bus.last_stop("17082411", 14) print r result += "\n".join([fmt % x for x in r]) response.content_type = "text/plain; charset=utf-8" print "tada" return result
def x(): bus = Transit(56) print bus.last_stop("17082410", 6) print bus.last_stop("17082411", 14)