From 8e8546c919e7f9dc41f8619d02e79e10d2ab6333 Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Sun, 29 Mar 2009 04:29:50 +0000 Subject: [PATCH] Corrected docstring for class_mapper. It does not accept an object. Fixes #1316. --- lib/sqlalchemy/orm/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.""" -- 2.47.3