[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:
parent
5691415af1
commit
7a3323118e
|
@ -68,6 +68,12 @@ if sys.version_info < (2, 3):
|
||||||
import logging22 as logging
|
import logging22 as logging
|
||||||
import select
|
import select
|
||||||
PY22 = True
|
PY22 = True
|
||||||
|
|
||||||
|
import socket
|
||||||
|
if not hasattr(socket, 'timeout'):
|
||||||
|
class timeout(socket.error): pass
|
||||||
|
socket.timeout = timeout
|
||||||
|
del timeout
|
||||||
else:
|
else:
|
||||||
import logging
|
import logging
|
||||||
PY22 = False
|
PY22 = False
|
||||||
|
|
Loading…
Reference in New Issue