diff --git a/paramiko/common.py b/paramiko/common.py index 88e8b1a..c9d5558 100644 --- a/paramiko/common.py +++ b/paramiko/common.py @@ -68,6 +68,12 @@ if sys.version_info < (2, 3): import logging22 as logging import select PY22 = True + + import socket + if not hasattr(socket, 'timeout'): + class timeout(socket.error): pass + socket.timeout = timeout + del timeout else: import logging PY22 = False