mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Whitespace normalization.
This commit is contained in:
parent
1a9fac0937
commit
e33901eb2b
3 changed files with 4 additions and 4 deletions
|
@ -59,7 +59,7 @@ class Queue:
|
||||||
self.unfinished_tasks = unfinished = self.unfinished_tasks - 1
|
self.unfinished_tasks = unfinished = self.unfinished_tasks - 1
|
||||||
if unfinished <= 0:
|
if unfinished <= 0:
|
||||||
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()
|
self.all_tasks_done.notifyAll()
|
||||||
finally:
|
finally:
|
||||||
self.all_tasks_done.release()
|
self.all_tasks_done.release()
|
||||||
|
|
|
@ -387,9 +387,9 @@ def _run_module_code(code, init_globals=None,
|
||||||
finally:
|
finally:
|
||||||
sys.argv[0] = saved_argv0
|
sys.argv[0] = saved_argv0
|
||||||
if restore_module:
|
if restore_module:
|
||||||
sys.modules[mod_name] = saved_module
|
sys.modules[mod_name] = saved_module
|
||||||
else:
|
else:
|
||||||
del sys.modules[mod_name]
|
del sys.modules[mod_name]
|
||||||
# Copy the globals of the temporary module, as they
|
# Copy the globals of the temporary module, as they
|
||||||
# may be cleared when the temporary module goes away
|
# may be cleared when the temporary module goes away
|
||||||
return mod_globals.copy()
|
return mod_globals.copy()
|
||||||
|
|
|
@ -234,7 +234,7 @@ def worker(q):
|
||||||
finally:
|
finally:
|
||||||
cumlock.release()
|
cumlock.release()
|
||||||
q.task_done()
|
q.task_done()
|
||||||
|
|
||||||
def QueueJoinTest(q):
|
def QueueJoinTest(q):
|
||||||
global cum
|
global cum
|
||||||
cum = 0
|
cum = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue