def registry_cache():
 filename = registry_cache_filename()
 log.debug('Loading widget registry cache (%r).', filename)
 if os.path.exists(filename):
  try:
   with open(filename, 'rb') as f:
    return pickle.load(f)
  except Exception:
   log.error('Could not load registry cache.', exc_info=True)
 return {}

def registry_cache ( ) : filename = registry_cache_filename ( ) log . debug ( 'Loading widget registry cache (%r).' , filename ) if os . path . exists ( filename ) : try : with open ( filename , 'rb' ) as f : return pickle . load ( f ) except Exception : log . error ( 'Could not load registry cache.' , exc_info = True ) return { }
return the registry cache dictionary .