#NEWLINE# def _iter_filter( root_dir , data_dict ) : #NEWLINE# #INDENT# root_fragment = os . path . join ( root_dir , 'pex/' ) #NEWLINE# pex_fragment = ( '/%s/_pex/' % PEXBuilder . BOOTSTRAP_DIR ) #NEWLINE# for ( filename , records ) in data_dict . items ( ) : #NEWLINE# #INDENT# if filename . startswith ( root_fragment ) : #NEWLINE# #INDENT# ( yield ( filename , dict ( ( ( record , None ) for record in records ) ) ) ) #NEWLINE# continue #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# bi = filename . index ( pex_fragment ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# ( yield ( os . path . join ( root_dir , 'pex' , filename [ ( bi + len ( pex_fragment ) ) : ] ) , dict ( ( ( record , None ) for record in records ) ) ) )