(language_or_generator)
Return the appropriate generator for this language.

  Args:
    language_or_generator: (str) the language for which to return a generator,
        or the name of a specific generator.

  Raises:
    ValueError: If provided language isn't supported.

  Returns:
    The appropriate code generator object (which may be None).
Return the appropriate generator for this language.
Return the appropriate generator for this language .
def GetGeneratorByLanguage(language_or_generator):
  """Return the appropriate generator for this language.

  Args:
    language_or_generator: (str) the language for which to return a generator,
        or the name of a specific generator.

  Raises:
    ValueError: If provided language isn't supported.

  Returns:
    The appropriate code generator object (which may be None).
  """

  try:
    return _GENERATORS_BY_LANGUAGE[language_or_generator]
  except KeyError:
    raise ValueError('Unsupported language: %s' % language_or_generator)
def GetGeneratorByLanguage ( language_or_generator ) : try : return _GENERATORS_BY_LANGUAGE [ language_or_generator ] except KeyError : raise ValueError ( 'Unsupported language: %s' % language_or_generator )