diff --git a/Lib/multiprocessing/synchronize.py b/Lib/multiprocessing/synchronize.py index 22eabe55b84..0faca78412c 100644 --- a/Lib/multiprocessing/synchronize.py +++ b/Lib/multiprocessing/synchronize.py @@ -199,7 +199,7 @@ class Condition(object): num_waiters = (self._sleeping_count._semlock._get_value() - self._woken_count._semlock._get_value()) except Exception: - num_waiters = 'unkown' + num_waiters = 'unknown' return '' % (self._lock, num_waiters) def wait(self, timeout=None): diff --git a/Misc/NEWS b/Misc/NEWS index e3bcfe268c4..c506822be86 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -88,6 +88,8 @@ Core and Builtins Library ------- +- Fix typos in the multiprocessing module. + - Issue #17754: Make ctypes.util.find_library() independent of the locale. - Issue #17968: Fix memory leak in os.listxattr(). diff --git a/Modules/_multiprocessing/multiprocessing.c b/Modules/_multiprocessing/multiprocessing.c index a77c3b341c4..a4c4b2d38c0 100644 --- a/Modules/_multiprocessing/multiprocessing.c +++ b/Modules/_multiprocessing/multiprocessing.c @@ -44,7 +44,7 @@ _PyMp_SetError(PyObject *Type, int num) break; default: PyErr_Format(PyExc_RuntimeError, - "unkown error number %d", num); + "unknown error number %d", num); } return NULL; }