Author: bugman Date: Thu Aug 25 11:49:34 2011 New Revision: 14431 URL: http://svn.gna.org/viewcvs/relax?rev=14431&view=rev Log: Removed the IO redirection from the uni-processor return_object() method. IO redirection in the 'multi' package is a bad, bad idea and destroys all IO redirection any Python program is attempting to do. Modified: 1.3/multi/uni_processor.py Modified: 1.3/multi/uni_processor.py URL: http://svn.gna.org/viewcvs/relax/1.3/multi/uni_processor.py?rev=14431&r1=14430&r2=14431&view=diff ============================================================================== --- 1.3/multi/uni_processor.py (original) +++ 1.3/multi/uni_processor.py Thu Aug 25 11:49:34 2011 @@ -111,10 +111,6 @@ def return_object(self, result): - local_save_stdout = sys.stdout - local_save_stderr = sys.stderr - self.restore_stdio() - if isinstance(result, Exception): #FIXME: clear command queue # and finalise mpi (or restart it if we can! @@ -132,8 +128,6 @@ else: message = 'Unexpected result type \n%s \nvalue%s' %(result.__class__.__name__, result) raise Exception(message) - sys.stdout = local_save_stdout - sys.stderr = local_save_stderr def run(self):