summaryrefslogtreecommitdiffstats
path: root/Doc/library/ssl.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/ssl.rst')
-rw-r--r--Doc/library/ssl.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
index 55ff7cd..5072caf 100644
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -297,8 +297,8 @@ sends some bytes, and reads part of the response::
ssl_sock.connect(('www.verisign.com', 443))
- print repr(ssl_sock.getpeername())
- print pprint.pformat(ssl_sock.getpeercert())
+ print(repr(ssl_sock.getpeername()))
+ pprint.pprint(ssl_sock.getpeercert())
# Set a simple HTTP request -- use httplib in actual code.
ssl_sock.write("""GET / HTTP/1.0\r