summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-12-31 04:08:55 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-12-31 04:08:55 (GMT)
commit941db4d91f3c6eba19ddaa7310e3a79b1f9b70f7 (patch)
treeede1c3457e45bad466e91e1996401881da4c91f5 /Lib
parent43ea6d9acc5227976ab0deeef0243cfaf5b0be71 (diff)
downloadcpython-941db4d91f3c6eba19ddaa7310e3a79b1f9b70f7.zip
cpython-941db4d91f3c6eba19ddaa7310e3a79b1f9b70f7.tar.gz
cpython-941db4d91f3c6eba19ddaa7310e3a79b1f9b70f7.tar.bz2
fix name collision issues
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ssl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/ssl.py b/Lib/ssl.py
index 03a317b..1b017b1 100644
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -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: