def main(options): dh = Datahelper() for line in sys.stdin: data = line.strip().split(',') data[0] = dh.format_atc_code(data[0], int(options.codelen)) data[1] = data[1].lower() print ','.join(data)
def main(options): count = 0 dh = Datahelper() for line in sys.stdin: count += 1 data = line.strip().split(',') data[2] = dh.format_atc_code(data[2], int(options.codelen)) print ','.join(data) return count