vivekkoya / classfiles

Consider removing the commented out code block PY-W0069
Anti-pattern
Major
a year agoa year old
Consider removing the commented out code block
 76    with open(src, 'r', encoding="windows-1252") as csvfile:
 77        reader = csv.reader(csvfile, delimiter=" ", quotechar='"')
 78        for row in reader:
 79            # if row[0].strip()[0] == '    ': 80            #     continue
 81            row = filter(None, row)
 82            data.append(OrderedDict(zip(header, row)))
Consider removing the commented out code block
 27            csv.write(re.sub('\t', ',', re.sub(
 28                '(^|[\t])([^\t]*\,[^\t\n]*)', r'\1"\2"', line)))
 29
 30    # csv.close() 31
 32
 33# TSV -> JSON