]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Corrected docstring for class_mapper. It does not accept an object. Fixes #1316.
authorMichael Trier <mtrier@gmail.com>
Sun, 29 Mar 2009 04:29:50 +0000 (04:29 +0000)
committerMichael Trier <mtrier@gmail.com>
Sun, 29 Mar 2009 04:29:50 +0000 (04:29 +0000)
lib/sqlalchemy/orm/util.py

index 37c88907b6f2dde2895901973180af29bae6bfbf..c858ca10265f8ae6657f9219dd1e3b795b3780ee 100644 (file)
@@ -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."""