#NEWLINE# def _prepare_formats( self ) : #NEWLINE# #INDENT# xf_formats = [ ] #NEWLINE# dxf_formats = [ ] #NEWLINE# for xf_format in self . formats : #NEWLINE# #INDENT# if ( xf_format . xf_index is not None ) : #NEWLINE# #INDENT# xf_formats . append ( xf_format ) #NEWLINE# #UNINDENT# if ( xf_format . dxf_index is not None ) : #NEWLINE# #INDENT# dxf_formats . append ( xf_format ) #NEWLINE# #UNINDENT# #UNINDENT# self . xf_formats = ( [ None ] * len ( xf_formats ) ) #NEWLINE# self . dxf_formats = ( [ None ] * len ( dxf_formats ) ) #NEWLINE# for xf_format in xf_formats : #NEWLINE# #INDENT# index = xf_format . xf_index #NEWLINE# self . xf_formats [ index ] = xf_format #NEWLINE# #UNINDENT# for dxf_format in dxf_formats : #NEWLINE# #INDENT# index = dxf_format . dxf_index #NEWLINE# self . dxf_formats [ index ] = dxf_format