]> 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:37:40 +0000 (18:37 -0400)
commite3035661f4d341e59201a44a3b3a8ed49d5114fa
tree04fed50c0b572b4bcbe3613d4c2a766e271437e6
parent2d5477e12ba677a0d6977ef35994a631a1b7abfc
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
(cherry picked from commit 22570c3181ef4e98c548c2f6254a0c7585568f06)
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/ext/automap.py
lib/sqlalchemy/ext/declarative/base.py