    class ParseError(Exception):

    class CSVParser:
        def __init__(self, allowComments=1, stripWhitespace=1, fieldSep=',', autoReset=1, doubleQuote=1):

        ## Parse ##
        def parse(self, line):

        ## Reset ##
        def reset(self):

        ## State Handlers ##
        def startRecord(self, c):
        def startField(self, c):
        def inField(self, c):
        def quoteInField(self, c):
        def inQuotedField(self, c):
        def quoteInQuotedField(self, c):
        def endQuotedField(self, c):
        def saveField(self):
    def joinCSVFields(fields):