diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-10-10 06:13:49 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-10-10 06:13:49 (GMT) |
commit | 79941b5c09a55c5d1dc620d74e26103e93b1c465 (patch) | |
tree | f629cad763e310db47b87a3254041900c9ca2cb9 /Doc/library | |
parent | 2f08df36900f4a2799e7f0e92178e314180ee3bc (diff) | |
download | cpython-79941b5c09a55c5d1dc620d74e26103e93b1c465.zip cpython-79941b5c09a55c5d1dc620d74e26103e93b1c465.tar.gz cpython-79941b5c09a55c5d1dc620d74e26103e93b1c465.tar.bz2 |
Fix Issue7285 - multiprocessing module, example code error.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/multiprocessing.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index e7f9afe..f8327ec 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -1807,14 +1807,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])) @@ -1828,7 +1828,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] |