From: Jochem Oosterveen Date: Fri, 6 Mar 2015 15:58:30 +0000 (+0100) Subject: minor docstring fix in MappedCollection class X-Git-Tag: rel_0_9_9~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79025e272085dbeb2071d830b570ac4285584a61;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git minor docstring fix in MappedCollection class (cherry picked from commit 34cb52e8d9f9bf345904315f16fb87ca9310d9cb) --- diff --git a/lib/sqlalchemy/orm/collections.py b/lib/sqlalchemy/orm/collections.py index 3c17bc09e9..303c3b9dc9 100644 --- a/lib/sqlalchemy/orm/collections.py +++ b/lib/sqlalchemy/orm/collections.py @@ -1492,8 +1492,8 @@ class MappedCollection(dict): def __init__(self, keyfunc): """Create a new collection with keying provided by keyfunc. - keyfunc may be any callable any callable that takes an object and - returns an object for use as a dictionary key. + keyfunc may be any callable that takes an object and returns an object + for use as a dictionary key. The keyfunc will be called every time the ORM needs to add a member by value-only (such as when loading instances from the database) or