diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-03-25 01:50:43 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-03-25 01:50:43 (GMT) |
commit | e33901eb2b196149eab06f2943256e07b494fbb1 (patch) | |
tree | 81825c6becdae54bd24e7d5d744d9a87f9b0a0a8 /Lib | |
parent | 1a9fac09377b1da9e86fd4fbb80257b49623d984 (diff) | |
download | cpython-e33901eb2b196149eab06f2943256e07b494fbb1.zip cpython-e33901eb2b196149eab06f2943256e07b494fbb1.tar.gz cpython-e33901eb2b196149eab06f2943256e07b494fbb1.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/Queue.py | 2 | ||||
-rwxr-xr-x | Lib/runpy.py | 4 | ||||
-rw-r--r-- | Lib/test/test_queue.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Lib/Queue.py b/Lib/Queue.py index 285cd17..ad65cf0 100644 --- a/Lib/Queue.py +++ b/Lib/Queue.py @@ -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() diff --git a/Lib/runpy.py b/Lib/runpy.py index 496b095..0af9a50 100755 --- a/Lib/runpy.py +++ b/Lib/runpy.py @@ -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() diff --git a/Lib/test/test_queue.py b/Lib/test/test_queue.py index 17c1def..77a1c9d 100644 --- a/Lib/test/test_queue.py +++ b/Lib/test/test_queue.py @@ -234,7 +234,7 @@ def worker(q): finally: cumlock.release() q.task_done() - + def QueueJoinTest(q): global cum cum = 0 |