summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-10-10 06:18:19 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-10-10 06:18:19 (GMT)
commite6788dbfdc7f745cfb6a0122a0c301e5f7d4914c (patch)
tree129ead27b7b0413b33ee22c8e4ee8943941982d1 /Doc
parent066e7a974afa8582fde9e1f97d76f76ee9ffc216 (diff)
downloadcpython-e6788dbfdc7f745cfb6a0122a0c301e5f7d4914c.zip
cpython-e6788dbfdc7f745cfb6a0122a0c301e5f7d4914c.tar.gz
cpython-e6788dbfdc7f745cfb6a0122a0c301e5f7d4914c.tar.bz2
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. ........
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/multiprocessing.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index e23b926..a3fd970 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -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]