mirror of https://github.com/python/cpython
avoid backticks in examples; use repr() instead
This commit is contained in:
parent
1afd4807d9
commit
175d18840a
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue