mirror of https://github.com/python/cpython
Whitespace normalization.
This commit is contained in:
parent
1a9fac0937
commit
e33901eb2b
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -234,7 +234,7 @@ def worker(q):
|
|||
finally:
|
||||
cumlock.release()
|
||||
q.task_done()
|
||||
|
||||
|
||||
def QueueJoinTest(q):
|
||||
global cum
|
||||
cum = 0
|
||||
|
|
Loading…
Reference in New Issue