#NEWLINE# def _configure( self , options , dont_fail = False ) : #NEWLINE# #INDENT# "Configure the exporter by poping options from the ``options`` dict.\n        If dont_fail is set, it won't raise an exception on unexpected options\n        (useful for using with keyword arguments in subclasses constructors)\n        " #NEWLINE# self . fields_to_export = options . pop ( 'fields_to_export' , None ) #NEWLINE# self . export_empty_fields = options . pop ( 'export_empty_fields' , False ) #NEWLINE# self . encoding = options . pop ( 'encoding' , 'utf-8' ) #NEWLINE# if ( ( not dont_fail ) and options ) : #NEWLINE# #INDENT# raise TypeError ( ( 'Unexpected options: %s' % ', ' . join ( options . keys ( ) ) ) )