def jobconf_from_dict(jobconf, name, default=None):
 if (name in jobconf):
  return jobconf[name]
 for alternative in _JOBCONF_MAP.get(name, {}).values():
  if (alternative in jobconf):
   return jobconf[alternative]
 return default

def jobconf_from_dict ( jobconf , name , default = None ) : if ( name in jobconf ) : return jobconf [ name ] for alternative in _JOBCONF_MAP . get ( name , { } ) . values ( ) : if ( alternative in jobconf ) : return jobconf [ alternative ] return default
get the value of a jobconf variable from the given dictionary .