[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-47]

add socket.timeout for py22
oops, forgot this vital part of the py22 patches.  roger binns sent me a
code patch that included this snip.
This commit is contained in:
Robey Pointer 2004-04-08 05:12:20 +00:00
parent 5691415af1
commit 7a3323118e
1 changed files with 6 additions and 0 deletions

View File

@ -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