def save_registry_cache(cache):
 filename = registry_cache_filename()
 log.debug('Saving widget registry cache with %i entries (%r).', len(cache), filename)
 try:
  with open(filename, 'wb') as f:
   pickle.dump(cache, f)
  return True
 except Exception:
  log.error('Could not save registry cache', exc_info=True)
 return False

def save_registry_cache ( cache ) : filename = registry_cache_filename ( ) log . debug ( 'Saving widget registry cache with %i entries (%r).' , len ( cache ) , filename ) try : with open ( filename , 'wb' ) as f : pickle . dump ( cache , f ) return True except Exception : log . error ( 'Could not save registry cache' , exc_info = True ) return False
save the registry cache .