#NEWLINE# def __init__( self , f , dialect = csv . excel , encoding = 'utf-8' , quoting = csv . QUOTE_ALL , **kwds ) : #NEWLINE# #INDENT# self . queue = StringIO . StringIO ( ) #NEWLINE# self . writer = csv . writer ( self . queue , dialect = dialect , quoting = quoting , ** kwds ) #NEWLINE# self . stream = f #NEWLINE# self . encoder = codecs . getincrementalencoder ( encoding ) ( )