diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-04 16:23:27 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-04 16:23:27 -0400 |
commit | 220fa91337aced11789b23065289203414f2063d (patch) | |
tree | ce4fec18d671790bdcdab7dca707997229783d48 /lib/sqlalchemy/orm/attributes.py | |
parent | 8be6831f8be70d7946fd8e3e41b18781a1743ea7 (diff) | |
download | sqlalchemy-220fa91337aced11789b23065289203414f2063d.tar.gz |
most of ORM passing...
Diffstat (limited to 'lib/sqlalchemy/orm/attributes.py')
-rw-r--r-- | lib/sqlalchemy/orm/attributes.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index 691904bb3..057247047 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -386,8 +386,8 @@ def create_proxied_attribute(descriptor): return getattr(self.comparator, attribute) except AttributeError: raise AttributeError( - 'Neither %r object nor %r object associated with %s ' - 'has an attribute %r' % ( + 'Neither %r object nor %r object associated with %s ' + 'has an attribute %r' % ( type(descriptor).__name__, type(self.comparator).__name__, self, @@ -1216,6 +1216,7 @@ class History(History): def __bool__(self): return self != HISTORY_BLANK + __nonzero__ = __bool__ def empty(self): """Return True if this :class:`.History` has no changes |