]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Allow url.password to be an object
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 4 Dec 2017 16:56:14 +0000 (11:56 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 4 Dec 2017 16:56:46 +0000 (11:56 -0500)
commite6438cf8c3d2200262815840ac597d3f4a22e944
tree06f2493f016ff8ef706774e083c7590909cf78e8
parente447582b8575eaf165f02864a4b0b977930b3a52
Allow url.password to be an object

The "password" attribute of the :class:`.url.URL` object can now be
any user-defined or user-subclassed string object that responds to the
Python ``str()`` builtin.   The object passed will be maintained as the
datamember :attr:`.url.URL.password_original` and will be consulted
when the :attr:`.url.URL.password` attribute is read to produce the
string value.

Change-Id: I91d101c3b10e135ae7e4de60a5104b51776db84f
Fixes: #4089
doc/build/changelog/unreleased_12/4089.rst [new file with mode: 0644]
lib/sqlalchemy/engine/url.py
test/engine/test_parseconnect.py