py3 support errors

master
inpos 2017-12-18 09:07:35 +03:00
parent d218d92d2f
commit a3242f2749
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ class NetworkedTests(unittest.TestCase):
count += 1
s.do_handshake()
break
except ssl.SSLError, err:
except ssl.SSLError as err:
if err.args[0] == ssl.SSL_ERROR_WANT_READ:
while True:
to = s.get_timeout()