def get_class_alias(klass_or_alias):
 if isinstance(klass_or_alias, python.str_types):
  try:
   return CLASS_CACHE[klass_or_alias]
  except KeyError:
   return load_class(klass_or_alias)
 try:
  return CLASS_CACHE[klass_or_alias]
 except KeyError:
  raise UnknownClassAlias(('Unknown alias for %r' % (klass_or_alias,)))

def get_class_alias ( klass_or_alias ) : if isinstance ( klass_or_alias , python . str_types ) : try : return CLASS_CACHE [ klass_or_alias ] except KeyError : return load_class ( klass_or_alias ) try : return CLASS_CACHE [ klass_or_alias ] except KeyError : raise UnknownClassAlias ( ( 'Unknown alias for %r' % ( klass_or_alias , ) ) )
tries to find a suitable l{pyamf .