Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6788db

Browse files
committed
Merged revisions 85347 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent 066e7a9 commit e6788db

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/multiprocessing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,14 +1796,14 @@ the client::
17961796
from array import array
17971797

17981798
address = ('localhost', 6000) # family is deduced to be 'AF_INET'
1799-
listener = Listener(address, authkey='secret password')
1799+
listener = Listener(address, authkey=b'secret password')
18001800

18011801
conn = listener.accept()
18021802
print('connection accepted from', listener.last_accepted)
18031803

18041804
conn.send([2.25, None, 'junk', float])
18051805

1806-
conn.send_bytes('hello')
1806+
conn.send_bytes(b'hello')
18071807

18081808
conn.send_bytes(array('i', [42, 1729]))
18091809

@@ -1817,7 +1817,7 @@ server::
18171817
from array import array
18181818

18191819
address = ('localhost', 6000)
1820-
conn = Client(address, authkey='secret password')
1820+
conn = Client(address, authkey=b'secret password')
18211821

18221822
print(conn.recv()) # => [2.25, None, 'junk', float]
18231823

0 commit comments

Comments
 (0)