diff --git a/src/wani.py b/src/wani.py index 1ba08c3..12ef8e8 100644 --- a/src/wani.py +++ b/src/wani.py @@ -33,14 +33,10 @@ def load_files(args): for n, fname in enumerate(filenames): et = load_xml(fname) yield from file_sentence_generator(et, skip_id_check, do_msd_translate, args.pc_tag, args.chunk_size) - if args.count_files: - status = " :: {} / {}".format(n, len(filenames)) - else: - status = "" - yield from file_sentence_generator(fname, skip_id_check, do_msd_translate, args.pc_tag, status) -def load_xml(filename, status): - logging.info("LOADING XML: {}{}".format(filename, status)) + +def load_xml(filename): + logging.info("\rLOADING XML: {}".format(filename)) with open(filename, 'r') as fp: content = fp.read()