diff options
author | Jason Kirtland <jek@discorporate.us> | 2007-08-28 15:17:26 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2007-08-28 15:17:26 +0000 |
commit | b11fde9cff282de6ab6940782af593da2bda7791 (patch) | |
tree | 71efd2fe83e2de95f04bb09d90853e313bf1fc33 /lib/sqlalchemy | |
parent | 9c7a423f6c65f43caae6a0a17529f40218767cdd (diff) | |
download | sqlalchemy-b11fde9cff282de6ab6940782af593da2bda7791.tar.gz |
Fixed OrderedProperties pickling [ticket:762]
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r-- | lib/sqlalchemy/util.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/util.py b/lib/sqlalchemy/util.py index 44ff3a2c5..321540419 100644 --- a/lib/sqlalchemy/util.py +++ b/lib/sqlalchemy/util.py @@ -275,10 +275,10 @@ class OrderedProperties(object): self._data[key] = object def __getstate__(self): - return self._data + return {'_data': self.__dict__['_data']} - def __setstate__(self, value): - self.__dict__['_data'] = value + def __setstate__(self, state): + self.__dict__['_data'] = state['_data'] def __getattr__(self, key): try: |