Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 94fd53b

Browse files
committed
- Fix typos in the multiprocessing module.
2 parents bcaddf6 + 9df891c commit 94fd53b

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

Lib/multiprocessing/synchronize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def __repr__(self):
199199
num_waiters = (self._sleeping_count._semlock._get_value() -
200200
self._woken_count._semlock._get_value())
201201
except Exception:
202-
num_waiters = 'unkown'
202+
num_waiters = 'unknown'
203203
return '<Condition(%s, %s)>' % (self._lock, num_waiters)
204204

205205
def wait(self, timeout=None):

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ Core and Builtins
8888
Library
8989
-------
9090

91+
- Fix typos in the multiprocessing module.
92+
9193
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
9294

9395
- Issue #17968: Fix memory leak in os.listxattr().

Modules/_multiprocessing/multiprocessing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ _PyMp_SetError(PyObject *Type, int num)
4444
break;
4545
default:
4646
PyErr_Format(PyExc_RuntimeError,
47-
"unkown error number %d", num);
47+
"unknown error number %d", num);
4848
}
4949
return NULL;
5050
}

0 commit comments

Comments
 (0)