]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix TypeError for class_mapper called w/ iterable
authorKyle Stark <kyle@goodrx.com>
Mon, 13 Jan 2014 16:52:31 +0000 (08:52 -0800)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 15 Jan 2014 01:24:04 +0000 (20:24 -0500)
commit26b899e9ac150f9458924964046356a2b69f1fb5
tree74bd49dc9249a9a840cf0cd3acd48d3575e9e541
parenta78110a21ccb0606cfc02de05e0a93e9875c384b
Fix TypeError for class_mapper called w/ iterable

When the class_ passed is not a mapped class but is actually an iterable, the string formatting operation fails with a TypeError, and the expected ArgumentError is not raised. Calling code which is using reflection and expects this error will fail (e.g. the sadisplay module).
Conflicts:
lib/sqlalchemy/orm/base.py
lib/sqlalchemy/orm/util.py