From 9df891ca41e98d6b008cbc6ccc738d531dcb42e4 Mon Sep 17 00:00:00 2001 From: "doko@ubuntu.com" Date: Wed, 15 May 2013 18:06:56 +0200 Subject: [PATCH] - Fix typos in the multiprocessing module. --- Lib/multiprocessing/synchronize.py | 2 +- Misc/NEWS | 6 ++++-- Modules/_multiprocessing/multiprocessing.c | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) 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 98c4c19a4d8..33a8b80cc9a 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,14 +10,16 @@ What's New in Python 3.3.3? Core and Builtins ----------------- -- Issue #17754: Make ctypes.util.find_library() independent of the locale. - - Issue #17927: Frame objects kept arguments alive if they had been copied into a cell, even if the cell was cleared. 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(). Documentation diff --git a/Modules/_multiprocessing/multiprocessing.c b/Modules/_multiprocessing/multiprocessing.c index eb05c62b0d0..9460c896ca8 100644 --- a/Modules/_multiprocessing/multiprocessing.c +++ b/Modules/_multiprocessing/multiprocessing.c @@ -46,7 +46,7 @@ mp_SetError(PyObject *Type, int num) break; default: PyErr_Format(PyExc_RuntimeError, - "unkown error number %d", num); + "unknown error number %d", num); } return NULL; }