]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
- Fix typos in the multiprocessing module.
authordoko@ubuntu.com <doko@ubuntu.com>
Wed, 15 May 2013 14:54:16 +0000 (16:54 +0200)
committerdoko@ubuntu.com <doko@ubuntu.com>
Wed, 15 May 2013 14:54:16 +0000 (16:54 +0200)
Lib/multiprocessing/synchronize.py
Misc/NEWS
Modules/_multiprocessing/multiprocessing.c

index 4b077e53aed4c95f3f9357e6cb225df3cfde90ab..d845f72a1c4b80ac70b98fffdb508471a5794c7e 100644 (file)
@@ -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 '<Condition(%s, %s)>' % (self._lock, num_waiters)
 
     def wait(self, timeout=None):
index baf06d0ca30ba524e3048dd07e73eb98057c20ea..c8dc24b11d87a92bc031c578dc71602d07b89615 100644 (file)
--- 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?
 ===========================
 
index c831637f901c519343aa0485546531e49d926a5e..d192a074ba55c3734fcc08966a5e781582adedc0 100644 (file)
@@ -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;
 }