diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-12-31 04:08:55 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-12-31 04:08:55 (GMT) |
commit | 941db4d91f3c6eba19ddaa7310e3a79b1f9b70f7 (patch) | |
tree | ede1c3457e45bad466e91e1996401881da4c91f5 /Lib/ssl.py | |
parent | 43ea6d9acc5227976ab0deeef0243cfaf5b0be71 (diff) | |
download | cpython-941db4d91f3c6eba19ddaa7310e3a79b1f9b70f7.zip cpython-941db4d91f3c6eba19ddaa7310e3a79b1f9b70f7.tar.gz cpython-941db4d91f3c6eba19ddaa7310e3a79b1f9b70f7.tar.bz2 |
fix name collision issues
Diffstat (limited to 'Lib/ssl.py')
-rw-r--r-- | Lib/ssl.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -74,7 +74,7 @@ from _ssl import \ SSL_ERROR_EOF, \ SSL_ERROR_INVALID_ERROR_CODE -from socket import socket, _fileobject +from socket import socket, _fileobject, error as socket_error from socket import getnameinfo as _getnameinfo import base64 # for DER-to-PEM translation @@ -103,7 +103,7 @@ class SSLSocket (socket): # see if it's connected try: socket.getpeername(self) - except socket.error: + except socket_error: # no, no connection yet self._sslobj = None else: @@ -441,7 +441,7 @@ def sslwrap_simple (sock, keyfile=None, certfile=None): PROTOCOL_SSLv23, None) try: sock.getpeername() - except socket.error: + except socket_error: # no, no connection yet pass else: |