<s> import csv <EOL> from StringIO import StringIO <EOL> from st2actions . runners . pythonrunner import Action <EOL> __all__ = [ <EOL> '<STR_LIT>' <EOL> ] <EOL> class ParseCSVAction ( Action ) : <EOL> def run ( self , data , delimiter = '<STR_LIT:U+002C>' , quote_char = '<STR_LIT:">' ) : <EOL> fh = StringIO ( data ) <EOL> reader = csv . reader ( fh , delimiter = str ( delimiter ) , quotechar = str ( quote_char ) ) <EOL> result = [ ] <EOL> for row in reader : <EOL> result . append ( row ) <EOL> return result </s>
