]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Protect against cls weakref becoming None
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 8 May 2017 22:36:57 +0000 (18:36 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 8 May 2017 22:36:57 +0000 (18:36 -0400)
commit22570c3181ef4e98c548c2f6254a0c7585568f06
tree471bc4670f0ac40c789a075f8797387ffb749041
parenta2e7b4c5fa71b95829e6d954f958bd91b4fd67e5
Protect against cls weakref becoming None

Protected against testing "None" as a class in the case where
declarative classes are being garbage collected and new
automap prepare() operations are taking place concurrently, very
infrequently hitting a weakref that has not been fully acted upon
after gc.

Change-Id: I32e1dfc5ac46bac4127fe808cfd18368e2fad9dd
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/ext/automap.py
lib/sqlalchemy/ext/declarative/base.py