Hi, in the function autoprobe, line 1181 for
the version 1.40 :
1181c1181
< sock.connect(realhost, port)
---
sock.connect((realhost, port))
As the probe is made within a try clause, the
reported error is that no server is active.
The shortcut without a tuple is accepted in
Python 1.52 but not in 2.1 :
--
Python 2.1 (#3, Jun 8 2001, 23:07:21)
[GCC 2.95.2 20000220 (Debian GNU/Linux)] on linux2
Type "copyright", "credits" or "license" for more information.
import socket
socket.socket(socket.AF_INET,socket.SOCK_STREAM).connect("onesite.org",110)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: connect() takes exactly 1 argument (2 given)
print sock.connect.__doc__
connect(address)
Connect the socket to a remote address. For IP sockets, the address
is a pair (host, port).
--
Alain