[Python-checkins] r85348 - in python/branches/release31-maint: Doc/library/multiprocessing.rst

senthil.kumaran python-checkins at python.org
Sun Oct 10 08:18:19 CEST 2010


Author: senthil.kumaran
Date: Sun Oct 10 08:18:19 2010
New Revision: 85348

Log:
Merged revisions 85347 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85347 | senthil.kumaran | 2010-10-10 11:43:49 +0530 (Sun, 10 Oct 2010) | 3 lines
  
  Fix Issue7285 - multiprocessing module, example code error.
........


Modified:
   python/branches/release31-maint/   (props changed)
   python/branches/release31-maint/Doc/library/multiprocessing.rst

Modified: python/branches/release31-maint/Doc/library/multiprocessing.rst
==============================================================================
--- python/branches/release31-maint/Doc/library/multiprocessing.rst	(original)
+++ python/branches/release31-maint/Doc/library/multiprocessing.rst	Sun Oct 10 08:18:19 2010
@@ -1796,14 +1796,14 @@
    from array import array
 
    address = ('localhost', 6000)     # family is deduced to be 'AF_INET'
-   listener = Listener(address, authkey='secret password')
+   listener = Listener(address, authkey=b'secret password')
 
    conn = listener.accept()
    print('connection accepted from', listener.last_accepted)
 
    conn.send([2.25, None, 'junk', float])
 
-   conn.send_bytes('hello')
+   conn.send_bytes(b'hello')
 
    conn.send_bytes(array('i', [42, 1729]))
 
@@ -1817,7 +1817,7 @@
    from array import array
 
    address = ('localhost', 6000)
-   conn = Client(address, authkey='secret password')
+   conn = Client(address, authkey=b'secret password')
 
    print(conn.recv())                  # => [2.25, None, 'junk', float]
 


More information about the Python-checkins mailing list