Author: bugman Date: Thu Oct 16 16:31:16 2008 New Revision: 7751 URL: http://svn.gna.org/viewcvs/relax?rev=7751&view=rev Log: Shifted the class Null_result_command to after Result_command due to it being a subclass. Modified: branches/multi_processor_merge/multi/processor.py Modified: branches/multi_processor_merge/multi/processor.py URL: http://svn.gna.org/viewcvs/relax/branches/multi_processor_merge/multi/processor.py?rev=7751&r1=7750&r2=7751&view=diff ============================================================================== --- branches/multi_processor_merge/multi/processor.py (original) +++ branches/multi_processor_merge/multi/processor.py Thu Oct 16 16:31:16 2008 @@ -391,18 +391,6 @@ @rtype: int ''' return id(self) - - -class Null_result_command(Result_command): - '''An empty result command. - - This command should be returned from slave_command if no other Result_command is returned. This - allows the queue processor to register that the slave processor has completed its processing and - schedule new Slave-commands to it. - ''' - - def __init__(self, processor, completed=True): - super(Null_result_command, self).__init__(processor=processor, completed=completed) class Processor(object): @@ -933,6 +921,18 @@ pass +class Null_result_command(Result_command): + '''An empty result command. + + This command should be returned from slave_command if no other Result_command is returned. This + allows the queue processor to register that the slave processor has completed its processing and + schedule new Slave-commands to it. + ''' + + def __init__(self, processor, completed=True): + super(Null_result_command, self).__init__(processor=processor, completed=completed) + + class Result_exception(Result_command): '''Return and raise an exception from the salve processor.'''