def call_use_cached_files(tup):
 try:
  (cache, key, results_dir) = tup
  res = cache.use_cached_files(key, results_dir)
  if res:
   sys.stderr.write(u'.')
  else:
   sys.stderr.write(u' ')
  return res
 except NonfatalArtifactCacheError as e:
  logger.warn(u'Error calling use_cached_files in artifact cache: {0}'.format(e))
  return False

def call_use_cached_files ( tup ) : try : ( cache , key , results_dir ) = tup res = cache . use_cached_files ( key , results_dir ) if res : sys . stderr . write ( u'.' ) else : sys . stderr . write ( u' ' ) return res except NonfatalArtifactCacheError as e : logger . warn ( u'Error calling use_cached_files in artifact cache: {0}' . format ( e ) ) return False
importable helper for multi-proc calling of artifactcache .