summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-06-03 16:23:23 (GMT)
committerFred Drake <fdrake@acm.org>2004-06-03 16:23:23 (GMT)
commit175d18840aafd51f47c8908cd9ba37fa4eaf473e (patch)
tree5539158174ffc3586489db025aab137a3664567c /Doc/lib
parent1afd4807d9b3df5ba24fa245920d677497025722 (diff)
downloadcpython-175d18840aafd51f47c8908cd9ba37fa4eaf473e.zip
cpython-175d18840aafd51f47c8908cd9ba37fa4eaf473e.tar.gz
cpython-175d18840aafd51f47c8908cd9ba37fa4eaf473e.tar.bz2
avoid backticks in examples; use repr() instead
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libsocket.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex
index 4470ce5..9ff5f01 100644
--- a/Doc/lib/libsocket.tex
+++ b/Doc/lib/libsocket.tex
@@ -714,7 +714,7 @@ s.connect((HOST, PORT))
s.send('Hello, world')
data = s.recv(1024)
s.close()
-print 'Received', `data`
+print 'Received', repr(data)
\end{verbatim}
The next two examples are identical to the above two, but support both
@@ -790,5 +790,5 @@ if s is None:
s.send('Hello, world')
data = s.recv(1024)
s.close()
-print 'Received', `data`
+print 'Received', repr(data)
\end{verbatim}