diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-05-28 16:14:11 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-05-29 14:42:14 -0400 |
commit | 9272ae4f77d670bd2ff4c55f50bf47ad374e8319 (patch) | |
tree | e6f6189f1b74d97a9463cc57d884be267fab658c /lib/sqlalchemy/orm/context.py | |
parent | 056bad48e2bc948a08621ab841fd882cb6934262 (diff) | |
download | sqlalchemy-9272ae4f77d670bd2ff4c55f50bf47ad374e8319.tar.gz |
Remove loader option cycle
removed a reference cycle set up by loader options
due to the attribute dictionary containing Load objects
that reference that dictionary.
Change-Id: Ie3159a084f819ae44ca4992b0dbe094fb69b2fa7
Diffstat (limited to 'lib/sqlalchemy/orm/context.py')
-rw-r--r-- | lib/sqlalchemy/orm/context.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/sqlalchemy/orm/context.py b/lib/sqlalchemy/orm/context.py index 09f3e7a12..5589f0e0c 100644 --- a/lib/sqlalchemy/orm/context.py +++ b/lib/sqlalchemy/orm/context.py @@ -117,11 +117,6 @@ class QueryContext(object): % ", ".join(compile_state._no_yield_pers) ) - def dispose(self): - self.attributes.clear() - self.load_options._refresh_state = None - self.load_options._lazy_loaded_from = None - class ORMCompileState(CompileState): class default_compile_options(CacheableOptions): |