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):