@@ -26,11 +26,11 @@ class Process(multiprocessing.Process):
2626 '''The actual system process used by `ProcessCruncher`.'''
2727 # One of the reasons that `Process` is a separate entity from
2828 # `ProcessCruncher` is that because the way the `multiprocessing` module
29- # works, all arguments to `Process.__init__` must be pickleable, which would
30- # prevent us from getting the crunching manager as an argument, since it's
31- # not pickleable.
29+ # works, all arguments to `Process.__init__` must be pickleable, which
30+ # would prevent us from getting the crunching manager as an argument, since
31+ # it's not pickleable.
3232
33- def __init__ (self , step_iterator_getter , initial_state , crunching_profile ):
33+ def __init__ (self , step_iterator_getter , initial_state , crunching_profile ):
3434 multiprocessing .Process .__init__ (self )
3535
3636 self .step_iterator_getter = step_iterator_getter
@@ -89,10 +89,10 @@ def run(self):
8989 Internal method.
9090
9191 This is called when the cruncher is started. It just calls the
92- `main_loop` method in a try clause, excepting `ObsoleteCruncherException`;
93- That exception means that the cruncher has been retired in the middle of
94- its job, so it is propagated up to this level, where it causes the
95- cruncher to terminate.
92+ `main_loop` method in a try clause, excepting
93+ `ObsoleteCruncherException`; That exception means that the cruncher has
94+ been retired in the middle of its job, so it is propagated up to this
95+ level, where it causes the cruncher to terminate.
9696 '''
9797 try :
9898 self .main_loop ()
@@ -159,8 +159,9 @@ def check_crunching_profile(self, state):
159159 we retire the cruncher.
160160 '''
161161 if self .crunching_profile .state_satisfies (state ):
162- raise ObsoleteCruncherException ("We're done working, the clock target "
163- "has been reached. Shutting down." )
162+ raise ObsoleteCruncherException ("We're done working, the clock "
163+ "target has been reached. "
164+ "Shutting down." )
164165
165166
166167 def get_order (self ):
@@ -179,8 +180,8 @@ def process_order(self, order):
179180 '''Process an order receieved from `.order_queue`.'''
180181
181182 if order == 'retire' :
182- raise ObsoleteCruncherException ("Cruncher received a 'retire' order; "
183- " Shutting down." )
183+ raise ObsoleteCruncherException ("Cruncher received a 'retire' "
184+ "order; Shutting down." )
184185
185186 elif isinstance (order , CrunchingProfile ):
186187 self .process_crunching_profile_order (order )
@@ -190,7 +191,7 @@ def process_order(self, order):
190191 def process_crunching_profile_order (self , order ):
191192 '''Process an order to update the crunching profile.'''
192193 if self .crunching_profile .step_profile != order .step_profile :
193- raise ObsoleteCruncherException ('Step profile changed; shutting down. '
194- ' Crunching manager should create a '
195- ' new cruncher.' )
194+ raise ObsoleteCruncherException ('Step profile changed; shutting '
195+ 'down. Crunching manager should '
196+ 'create a new cruncher.' )
196197 self .crunching_profile = order
0 commit comments