]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Deprecate row.keys() for 2.0, not 1.x
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 24 Feb 2020 18:54:37 +0000 (13:54 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 24 Feb 2020 18:54:37 +0000 (13:54 -0500)
commit5d42051c2e575713ffb8ea4f43ef1c2145b83c97
treec6a863de5a20bd6e67cd160c229f0aa06347f66e
parent955f4a27c37ba73901745b89eb555eb8681d4b9f
Deprecate row.keys() for 2.0, not 1.x

row.keys() is used by any use case that applies dict() to
a row.  Access of elements by string key is also a 2.0 deprecation
not 1.4 so for rudimental dict(row) support make sure that is all
a 2.0 thing.

Fixes current Alembic test suite.

Change-Id: I895496324133d615676cd76bc5f2c5f4a83e9131
lib/sqlalchemy/engine/row.py
test/sql/test_deprecations.py
test/sql/test_resultset.py