From a612c8a5e239d518b73bcadff2c066829a1358e8 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 13 Feb 2008 17:27:47 +0000 Subject: [PATCH] a TODO comment --- lib/sqlalchemy/orm/attributes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index 5ae79e4323..b0f10c20b5 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -624,6 +624,8 @@ class CollectionAttributeImpl(AttributeImpl): try: return getattr(user_data, '_sa_adapter') except AttributeError: + # TODO: this codepath never occurs, and this + # except/initialize should be removed collections.CollectionAdapter(self, state, user_data) return getattr(user_data, '_sa_adapter') -- 2.47.3