def translate_jobconf(variable, version):
 if (version is None):
  raise TypeError
 if (variable in _JOBCONF_MAP):
  return map_version(version, _JOBCONF_MAP[variable])
 else:
  return variable

def translate_jobconf ( variable , version ) : if ( version is None ) : raise TypeError if ( variable in _JOBCONF_MAP ) : return map_version ( version , _JOBCONF_MAP [ variable ] ) else : return variable
translate *variable* to hadoop version *version* .