Antoine Pitrou <pit...@free.fr> added the comment: > @Antoine: ok, thanks. > > This is now committed in r84352.
I don't think it's ok to test for the IOError message ("No such file"), because it comes from the OS and can therefore change from platform to platform. Instead, you should check the value of the "errno" attribute on the IOError objects. Also: + except IOError as x: + if support.verbose: + sys.stdout.write("\nsocket.error is %s\n" % str(x)) The message should be changed (IOError instead of socket.error). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9706> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com