Commit dd6eb6f0 authored by Neeme Kahusk's avatar Neeme Kahusk

clean 0.3.2

parent d48db423
0.3.1
\ No newline at end of file
0.3.2
\ No newline at end of file
......@@ -3,16 +3,15 @@
"""Tabeldaja makes csv file from Meta-Share export XML
"""
import os
import os.path
#import os
#import os.path
import argparse
import re
#import re
import csv
import tempfile
from zipfile import ZipFile
from pathlib import Path
from lxml import etree
from prepare import read_xml
......@@ -83,15 +82,6 @@ def main():
tulem = zip2roots(args.infile)
tulemitabel = featured_rows(tulem, labels)
# for i in tulemitabel:
# print(i)
#
# with open(outfilename, 'w') as outfile:
# writer = csv.DictWriter(outfile, headers, dialect=csv.excel_tab, extrasaction='ignore')
# writer.writeheader()
# for i in data:
# writer.writerow(i)
csv_out(args.outfile, tulemitabel, SIMPLE)
else:
......@@ -108,4 +98,3 @@ def main():
if __name__ == '__main__':
main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment