Kaydet (Commit) 5ebca871 authored tarafından Jack Jansen's avatar Jack Jansen

Allow makefile('rb') or 'wb'.

üst c743c8d1
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment