diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-09-23 13:09:43 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-09-23 13:09:43 -0400 |
commit | bce3ffc3412737eae51cfe2ba231c6d1366a7d16 (patch) | |
tree | f82e11b578a212af9e1f809c4b2d1856a3b54fcd /lib/sqlalchemy/sql/util.py | |
parent | 152163b3336970460b605fc2a79766d94f467f8d (diff) | |
download | sqlalchemy-bce3ffc3412737eae51cfe2ba231c6d1366a7d16.tar.gz |
- use our new Cls.memoized_name._reset(self) method in place of all those __dict__.pop(),
remove reset_memoized
Diffstat (limited to 'lib/sqlalchemy/sql/util.py')
-rw-r--r-- | lib/sqlalchemy/sql/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/util.py b/lib/sqlalchemy/sql/util.py index 35761def1..70ea4c751 100644 --- a/lib/sqlalchemy/sql/util.py +++ b/lib/sqlalchemy/sql/util.py @@ -420,7 +420,7 @@ class Annotated(object): element.c self.__dict__ = element.__dict__.copy() - self.__dict__.pop('comparator', None) + expression.ColumnElement.comparator._reset(self) self.__element = element self._annotations = values @@ -432,7 +432,7 @@ class Annotated(object): def _with_annotations(self, values): clone = self.__class__.__new__(self.__class__) clone.__dict__ = self.__dict__.copy() - clone.__dict__.pop('comparator', None) + expression.ColumnElement.comparator._reset(self) clone._annotations = values return clone |