mailr17152 - /branches/interatomic/generic_fns/state.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on July 03, 2012 - 11:23:
Author: bugman
Date: Tue Jul  3 11:23:28 2012
New Revision: 17152

URL: http://svn.gna.org/viewcvs/relax?rev=17152&view=rev
Log:
Fix for the state.load user function for pickled files - _back_compat_hook() 
is now blacklisted.


Modified:
    branches/interatomic/generic_fns/state.py

Modified: branches/interatomic/generic_fns/state.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/interatomic/generic_fns/state.py?rev=17152&r1=17151&r2=17152&view=diff
==============================================================================
--- branches/interatomic/generic_fns/state.py (original)
+++ branches/interatomic/generic_fns/state.py Tue Jul  3 11:23:28 2012
@@ -74,7 +74,7 @@
     file.close()
 
     # Black list of objects (all dict objects, non-modifiable objects, data 
store specific methods, and other special objects).
-    black_list = dir(dict) + ['__weakref__', '__dict__', '__module__', 
'__reset__', 'add', 'from_xml', 'is_empty', 'to_xml']
+    black_list = dir(dict) + ['__weakref__', '__dict__', '__module__', 
'__reset__', '_back_compat_hook', 'add', 'from_xml', 'is_empty', 'to_xml']
 
     # Loop over the objects in the saved state, and dump them into the relax 
data store.
     for name in dir(state):




Related Messages


Powered by MHonArc, Updated Tue Jul 03 12:20:02 2012