]> granicus.if.org Git - python/commitdiff
avoid backticks in examples; use repr() instead
authorFred Drake <fdrake@acm.org>
Thu, 3 Jun 2004 16:23:23 +0000 (16:23 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 3 Jun 2004 16:23:23 +0000 (16:23 +0000)
Doc/lib/libsocket.tex

index 4470ce5bdf1039ae987974a41abe35c8722c512c..9ff5f0118f09346c7f9c58858a7c104ab490c276 100644 (file)
@@ -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}