From: Michael Trier Date: Sun, 29 Mar 2009 04:29:50 +0000 (+0000) Subject: Corrected docstring for class_mapper. It does not accept an object. Fixes #1316. X-Git-Tag: rel_0_5_4~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e8546c919e7f9dc41f8619d02e79e10d2ab6333;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Corrected docstring for class_mapper. It does not accept an object. Fixes #1316. --- diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py index 37c88907b6..c858ca1026 100644 --- a/lib/sqlalchemy/orm/util.py +++ b/lib/sqlalchemy/orm/util.py @@ -547,7 +547,7 @@ def object_mapper(instance): raise exc.UnmappedInstanceError(instance) def class_mapper(class_, compile=True): - """Given a class (or an object), return the primary Mapper associated with the key. + """Given a class, return the primary Mapper associated with the key. Raises UnmappedClassError if no mapping is configured. @@ -597,7 +597,7 @@ def _is_mapped_class(cls): manager = attributes.manager_of_class(cls) return manager and _INSTRUMENTOR in manager.info return False - + def instance_str(instance): """Return a string describing an instance."""