From: Fred Drake Date: Thu, 3 Jun 2004 16:23:23 +0000 (+0000) Subject: avoid backticks in examples; use repr() instead X-Git-Tag: v2.4a1~279 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=175d18840aafd51f47c8908cd9ba37fa4eaf473e;p=python avoid backticks in examples; use repr() instead --- diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex index 4470ce5bdf..9ff5f0118f 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}