#NEWLINE# def _write_cache_map( self , cache_dir , cache_map ) : #NEWLINE# #INDENT# if ( not os . path . exists ( cache_dir ) ) : #NEWLINE# #INDENT# os . makedirs ( cache_dir ) #NEWLINE# #UNINDENT# cache_map_file = os . path . join ( f , self . cache_map_file_name ) #NEWLINE# with open ( cache_map_file , 'w' ) as f : #NEWLINE# #INDENT# json . dump ( cache_map , f ) #NEWLINE# f . write ( '\n' )