for line in fileinput.input(): timestamp = get_timestamp(line) if timestamp is not None: histogram.count(timestamp) chart = AsciiChart(histogram) chart.draw()
for line in fileinput.input(): timestamp = get_timestamp(line) if timestamp is not None: histogram.count(timestamp) chart = AsciiChart(histogram) chart.draw() histogram.count(timestamp)