Author: bugman Date: Tue Nov 20 18:24:30 2007 New Revision: 3713 URL: http://svn.gna.org/viewcvs/relax?rev=3713&view=rev Log: Bug fix for both generic_fns.state unit tests. Modified: 1.3/generic_fns/state.py Modified: 1.3/generic_fns/state.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/state.py?rev=3713&r1=3712&r2=3713&view=diff ============================================================================== --- 1.3/generic_fns/state.py (original) +++ 1.3/generic_fns/state.py Tue Nov 20 18:24:30 2007 @@ -32,7 +32,7 @@ """Function for loading a saved program state.""" # Open the file for reading. - open_read_file(file_name=file, dir=dir, compress_type=compress_type) + file = open_read_file(file_name=file, dir=dir, compress_type=compress_type) # Unpickle the data class. relax_data_store = load(file) @@ -45,7 +45,7 @@ """Function for saving the program state.""" # Open the file for writing. - open_write_file(file_name=file, dir=dir, force=force, compress_type=compress_type) + file = open_write_file(file_name=file, dir=dir, force=force, compress_type=compress_type) # Pickle the data class and write it to file dump(relax_data_store, file, 1)