[Python-checkins] cpython (3.3): - Fix typos in the multiprocessing module.

matthias.klose python-checkins at python.org
Wed May 15 18:08:17 CEST 2013


http://hg.python.org/cpython/rev/36be00c51a66
changeset:   83779:36be00c51a66
branch:      3.3
parent:      83777:d6a43a99aea3
user:        doko at ubuntu.com
date:        Wed May 15 18:06:56 2013 +0200
summary:
  - Fix typos in the multiprocessing module.

files:
  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
--- a/Lib/multiprocessing/synchronize.py
+++ b/Lib/multiprocessing/synchronize.py
@@ -199,7 +199,7 @@
             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):
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,14 +10,16 @@
 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
--- a/Modules/_multiprocessing/multiprocessing.c
+++ b/Modules/_multiprocessing/multiprocessing.c
@@ -46,7 +46,7 @@
         break;
     default:
         PyErr_Format(PyExc_RuntimeError,
-                     "unkown error number %d", num);
+                     "unknown error number %d", num);
     }
     return NULL;
 }

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list