Fix typos (#97)
diff --git a/concurrent/futures/process.py b/concurrent/futures/process.py
index fa5b96f..bb327fa 100644
--- a/concurrent/futures/process.py
+++ b/concurrent/futures/process.py
@@ -57,7 +57,7 @@
# interpreter to exit when there are still idle processes in a
# ProcessPoolExecutor's process pool (i.e. shutdown() was not called). However,
# allowing workers to die with the interpreter has two undesirable properties:
-# - The workers would still be running during interpretor shutdown,
+# - The workers would still be running during interpreter shutdown,
# meaning that they would fail in unpredictable ways.
# - The workers could be killed while evaluating a work item, which could
# be bad if the callable being evaluated has external side-effects e.g.
@@ -352,7 +352,7 @@
self._result_queue.put(None)
if wait:
self._queue_management_thread.join(sys.maxint)
- # To reduce the risk of openning too many files, remove references to
+ # To reduce the risk of opening too many files, remove references to
# objects that use file descriptors.
self._queue_management_thread = None
self._call_queue = None
diff --git a/concurrent/futures/thread.py b/concurrent/futures/thread.py
index c0c5540..b9685ce 100644
--- a/concurrent/futures/thread.py
+++ b/concurrent/futures/thread.py
@@ -24,7 +24,7 @@
# to exit when there are still idle threads in a ThreadPoolExecutor's thread
# pool (i.e. shutdown() was not called). However, allowing workers to die with
# the interpreter has two undesirable properties:
-# - The workers would still be running during interpretor shutdown,
+# - The workers would still be running during interpreter shutdown,
# meaning that they would fail in unpredictable ways.
# - The workers could be killed while evaluating a work item, which could
# be bad if the callable being evaluated has external side-effects e.g.
diff --git a/test_futures.py b/test_futures.py
index 5ee4e71..37156ba 100644
--- a/test_futures.py
+++ b/test_futures.py
@@ -760,7 +760,7 @@
self.assertEqual(SUCCESSFUL_FUTURE.result(timeout=0), 42)
def test_result_with_success(self):
- # TODO([email protected]): This test is timing dependant.
+ # TODO([email protected]): This test is timing dependent.
def notification():
# Wait until the main thread is waiting for the result.
time.sleep(1)
@@ -773,7 +773,7 @@
self.assertEqual(f1.result(timeout=5), 42)
def test_result_with_cancel(self):
- # TODO([email protected]): This test is timing dependant.
+ # TODO([email protected]): This test is timing dependent.
def notification():
# Wait until the main thread is waiting for the result.
time.sleep(1)