--- D:/apps/Python26/Lib/idlelib/rpc-trunk.py Wed Aug 05 02:15:52 2009 +++ D:/apps/Python26/Lib/idlelib/rpc.py Wed Aug 05 02:39:20 2009 @@ -40,7 +40,7 @@ import copy_reg import types import marshal - +from errno import EWOULDBLOCK def unpickle_code(ms): co = marshal.loads(ms) @@ -332,8 +332,11 @@ n = self.sock.send(s[:BUFSIZE]) except (AttributeError, TypeError): raise IOError, "socket no longer exists" - except socket.error: - raise + except socket.error, why: + if why.args[0] == EWOULDBLOCK: + pass + else: + raise else: s = s[n:]