]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure str is callect on the URL password.
authorFederico Caselli <cfederico87@gmail.com>
Wed, 8 Sep 2021 20:25:12 +0000 (22:25 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 13 Sep 2021 19:23:10 +0000 (21:23 +0200)
commit23b3375dcd89b0ad268f8c96a5782f45bf9a99af
tree430d19415d1b607be7ed3ee56a71534ac5d9fffa
parent6dbcb792eb60d4e084f0d1252882a0cbad4bc673
Ensure str is callect on the URL password.

Ensure that ``str()`` is called on the an ``URL.password`` argument,
allowing usage of objects that implement the ``__str__()`` method
as password attributes.
Also clarified that one such object is not appropriate to dynamically
change the password.

Fixes: #6958
Change-Id: Id0690990a64b9e0935537b7b8f5a73efe6a9e3dc
doc/build/changelog/unreleased_14/6958.rst [new file with mode: 0644]
lib/sqlalchemy/engine/events.py
lib/sqlalchemy/engine/url.py
test/engine/test_parseconnect.py