summaryrefslogtreecommitdiffstats
path: root/Mac/Unsupported
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-02-14 16:03:14 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-02-14 16:03:14 (GMT)
commit5ebca871d96f3dea5a004dba05684ca159b2899d (patch)
treec66ff423df064879fd60b100b36ec5a47038a156 /Mac/Unsupported
parentc743c8d1663c57bf0b16d88c886f2e64ae64a8e5 (diff)
downloadcpython-5ebca871d96f3dea5a004dba05684ca159b2899d.zip
cpython-5ebca871d96f3dea5a004dba05684ca159b2899d.tar.gz
cpython-5ebca871d96f3dea5a004dba05684ca159b2899d.tar.bz2
Allow makefile('rb') or 'wb'.
Diffstat (limited to 'Mac/Unsupported')
-rw-r--r--Mac/Unsupported/mactcp/socket.py1
1 files changed, 1 insertions, 0 deletions
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