def csvtolist ( inputstr ) : reader = csv . reader ( [ inputstr ] , skipinitialspace = True ) output = [ ] for r in reader : output += r return output
turn csv into a list of strings python 3
converts a csv string into a list
def csvtolist(inputstr):
    """ converts a csv string into a list """
    reader = csv.reader([inputstr], skipinitialspace=True)
    output = []
    for r in reader:
        output += r
    return output