]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Use context managers for threading.Lock()
authorHeckad <heckad@yandex.ru>
Wed, 1 Jan 2020 19:47:01 +0000 (14:47 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 3 Jan 2020 18:09:46 +0000 (13:09 -0500)
commita076b1f30406cbb59a55e2c01ddd17a84636778e
treebb4c5a5b88d45963040842427d73f9616465bdb0
parent748bf710fdeeed327933a5e7c277c7f79f6053a6
Use context managers for threading.Lock()

(zzzeek:) For some reason I thought that threading.Lock() still did
not support context managers, at least in Python 2, however this
does not seem to be the case.

Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com>
Closes: #5069
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5069
Pull-request-sha: efeac06dda5afdbe33abcf9b27c8b5b5725c8444

Change-Id: Ic64fcd99cd587bc70b4ecc5b45d8205b5c76eff2
lib/sqlalchemy/ext/automap.py
lib/sqlalchemy/ext/declarative/base.py
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/pool/dbapi_proxy.py
lib/sqlalchemy/util/langhelpers.py
lib/sqlalchemy/util/queue.py
test/engine/test_pool.py
test/profiles.txt