From 5ebca871d96f3dea5a004dba05684ca159b2899d Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Wed, 14 Feb 1996 16:03:14 +0000 Subject: Allow makefile('rb') or 'wb'. --- Mac/Unsupported/mactcp/socket.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Mac/Unsupported/mactcp/socket.py b/Mac/Unsupported/mactcp/socket.py index 0a1b5f0..e6600b1 100644 --- a/Mac/Unsupported/mactcp/socket.py +++ b/Mac/Unsupported/mactcp/socket.py @@ -216,6 +216,7 @@ class _udpsocket(_socket): class _socketfile: def __init__(self, sock, rw, bs): + if rw[1:] == 'b': rw = rw[:1] if rw not in ('r', 'w'): raise _myerror, "mode must be 'r' or 'w'" self.sock = sock self.rw = rw -- cgit v0.12