From: Mike Bayer Date: Thu, 29 Jan 2009 17:58:29 +0000 (+0000) Subject: getstate fix X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86ff08dfea383cebd81347515c5b9affdfa589a1;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git getstate fix --- diff --git a/lib/sqlalchemy/types.py b/lib/sqlalchemy/types.py index a8fe8b821c..0e3dfe34f7 100644 --- a/lib/sqlalchemy/types.py +++ b/lib/sqlalchemy/types.py @@ -167,7 +167,7 @@ class TypeEngine(AbstractType): def __getstate__(self): d = self.__dict__.copy() - d['_impl_dict'] = weakref.WeakKeyDictionary() # will be optimized in 0.6 + d.pop('_impl_dict', None) return d def get_col_spec(self):