]> granicus.if.org Git - python/commitdiff
Merged revisions 85347 via svnmerge from
authorSenthil Kumaran <orsenthil@gmail.com>
Sun, 10 Oct 2010 06:18:19 +0000 (06:18 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Sun, 10 Oct 2010 06:18:19 +0000 (06:18 +0000)
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.
........

Doc/library/multiprocessing.rst

index e23b92637ed1c337019d31458a817068deeb4544..a3fd9700c8f396a9142b06d9f3eeffe923df5a0e 100644 (file)
@@ -1796,14 +1796,14 @@ the client::
    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 @@ server::
    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]