diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-02-20 03:31:23 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-02-20 03:31:23 (GMT) |
commit | a7b55a33f877d1c210a5372a73ad85983ab8621c (patch) | |
tree | ccff5a2b2506f9b290e8c9f83be33bb3dfc16655 /Doc/library/ssl.rst | |
parent | 5149742e8b3c8221d4cb53dcfc9a12ae3fec9238 (diff) | |
download | cpython-a7b55a33f877d1c210a5372a73ad85983ab8621c.zip cpython-a7b55a33f877d1c210a5372a73ad85983ab8621c.tar.gz cpython-a7b55a33f877d1c210a5372a73ad85983ab8621c.tar.bz2 |
revert r69777 since all the experts agree that extra import lines distract from the code
Diffstat (limited to 'Doc/library/ssl.rst')
-rw-r--r-- | Doc/library/ssl.rst | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index 572c566..30f1fea 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -481,9 +481,7 @@ Client-side operation This example connects to an SSL server, prints the server's address and certificate, sends some bytes, and reads part of the response:: - import pprint - import socket - import ssl + import socket, ssl, pprint s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) @@ -537,8 +535,7 @@ For server operation, typically you'd need to have a server certificate, and pri You'd open a socket, bind it to a port, call :meth:`listen` on it, then start waiting for clients to connect:: - import socket - import ssl + import socket, ssl bindsocket = socket.socket() bindsocket.bind(('myaddr.mydomain.com', 10023)) |