From: doko@ubuntu.com Date: Wed, 15 May 2013 14:54:16 +0000 (+0200) Subject: - Fix typos in the multiprocessing module. X-Git-Tag: v2.7.6rc1~390 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9855249a9fda76bafc2194eb75ad11229f2004ce;p=thirdparty%2FPython%2Fcpython.git - Fix typos in the multiprocessing module. --- diff --git a/Lib/multiprocessing/synchronize.py b/Lib/multiprocessing/synchronize.py index 4b077e53aed4..d845f72a1c4b 100644 --- a/Lib/multiprocessing/synchronize.py +++ b/Lib/multiprocessing/synchronize.py @@ -226,7 +226,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 baf06d0ca30b..c8dc24b11d87 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -14,6 +14,8 @@ Library - Issue #17754: Make ctypes.util.find_library() independent of the locale. +- Fix typos in the multiprocessing module. + What's New in Python 2.7.5? =========================== diff --git a/Modules/_multiprocessing/multiprocessing.c b/Modules/_multiprocessing/multiprocessing.c index c831637f901c..d192a074ba55 100644 --- a/Modules/_multiprocessing/multiprocessing.c +++ b/Modules/_multiprocessing/multiprocessing.c @@ -63,7 +63,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; }