Whitespace normalization.

This commit is contained in:
Tim Peters 2006-03-25 01:50:43 +00:00
parent 1a9fac0937
commit e33901eb2b
3 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ class Queue:
self.unfinished_tasks = unfinished = self.unfinished_tasks - 1
if unfinished <= 0:
if unfinished < 0:
raise ValueError('task_done() called too many times')
raise ValueError('task_done() called too many times')
self.all_tasks_done.notifyAll()
finally:
self.all_tasks_done.release()

View File

@ -387,9 +387,9 @@ def _run_module_code(code, init_globals=None,
finally:
sys.argv[0] = saved_argv0
if restore_module:
sys.modules[mod_name] = saved_module
sys.modules[mod_name] = saved_module
else:
del sys.modules[mod_name]
del sys.modules[mod_name]
# Copy the globals of the temporary module, as they
# may be cleared when the temporary module goes away
return mod_globals.copy()

View File

@ -234,7 +234,7 @@ def worker(q):
finally:
cumlock.release()
q.task_done()
def QueueJoinTest(q):
global cum
cum = 0