mirror of
https://github.com/python/cpython.git
synced 2026-01-04 06:22:20 +00:00
avoid backticks in examples; use repr() instead
This commit is contained in:
parent
1afd4807d9
commit
175d18840a
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue