From: Mike Bayer Date: Wed, 17 Jan 2007 22:14:13 +0000 (+0000) Subject: removed unnecessary value grab X-Git-Tag: rel_0_3_4~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dd908c0972bac5248ac29adbf0816cb2a2d2bab;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git removed unnecessary value grab --- diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index 17ab4cc04f..651436a970 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -210,7 +210,7 @@ class InstrumentedAttribute(object): orig = state.get('original', None) if orig is not None: orig.commit_attribute(self, obj) - return obj.__dict__[self.key] + return value else: # note that we arent raising AttributeErrors, just returning None. # this might be a good thing to be changeable by options.