Python ConfigParser elements into CSV arguments
===

I have a script that parses a csv file and produces an XML file. One of the arguments I have to give the parser is the delimiter, which in my case is not a comma but a tab. 

This information is stored in a configuration file which I extract and then pass to the csv parser.

    ident = parser.get('CSV', 'delimiter') #delimiter taken from config file 
    
    csv.register_dialect('custom', 
                        delimiter= ident, #passed to csv parser
                        doublequote=False,
                        escapechar=None,
                        quotechar='"',
                        quoting=csv.QUOTE_MINIMAL,
                        skipinitialspace=False)

However I get a type error saying that the "delimiter" must be an 1-character string. I checked the type of ident and it's a string but it doesn't seem to be recognising the \t as a tab. When I put ident = '\t' or delimiter = '\t' it works. How do I get the value correctly from the config file.

