def class_mapper(class_, configure=True):
 mapper = _inspect_mapped_class(class_, configure=configure)
 if (mapper is None):
  if (not isinstance(class_, type)):
   raise sa_exc.ArgumentError(("Class object expected, got '%r'." % (class_,)))
  raise exc.UnmappedClassError(class_)
 else:
  return mapper

def class_mapper ( class_ , configure = True ) : mapper = _inspect_mapped_class ( class_ , configure = configure ) if ( mapper is None ) : if ( not isinstance ( class_ , type ) ) : raise sa_exc . ArgumentError ( ( "Class object expected, got '%r'." % ( class_ , ) ) ) raise exc . UnmappedClassError ( class_ ) else : return mapper
given a class .