Rename to csv_dump
This commit is contained in:
parent
354bf1a1ff
commit
743226bbce
|
@ -48,7 +48,7 @@ def parse_args():
|
|||
return args
|
||||
|
||||
|
||||
def dump_csv(CSV):
|
||||
def csv_dump(CSV):
|
||||
with open(CSV, newline="") as csvfile:
|
||||
contactreader = csv.reader(csvfile, delimiter=",", quotechar='"')
|
||||
for row in contactreader:
|
||||
|
@ -59,10 +59,8 @@ def main():
|
|||
args = parse_args()
|
||||
CSV = args.csv
|
||||
|
||||
print("Parsing" + CSV)
|
||||
|
||||
if args.dump:
|
||||
dump_csv(CSV)
|
||||
csv_dump(CSV)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in a new issue