[Python-checkins] r77038 - python/trunk/Lib/multiprocessing/process.py

benjamin.peterson python-checkins at python.org
Thu Dec 24 16:19:40 CET 2009


Author: benjamin.peterson
Date: Thu Dec 24 16:19:40 2009
New Revision: 77038

Log:
allow Process name to be unicode #7571

Modified:
   python/trunk/Lib/multiprocessing/process.py

Modified: python/trunk/Lib/multiprocessing/process.py
==============================================================================
--- python/trunk/Lib/multiprocessing/process.py	(original)
+++ python/trunk/Lib/multiprocessing/process.py	Thu Dec 24 16:19:40 2009
@@ -138,7 +138,7 @@
 
     @name.setter
     def name(self, name):
-        assert isinstance(name, str), 'name must be a string'
+        assert isinstance(name, basestring), 'name must be a string'
         self._name = name
 
     @property


More information about the Python-checkins mailing list