mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Changed makefile() args from r/w to rb/wb, for non-unix compatability.
This commit is contained in:
parent
0d12ead05c
commit
2bb57b81f2
5 changed files with 7 additions and 7 deletions
|
@ -68,7 +68,7 @@ class NNTP:
|
|||
self.port = port
|
||||
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
self.sock.connect(self.host, self.port)
|
||||
self.file = self.sock.makefile('r')
|
||||
self.file = self.sock.makefile('rb')
|
||||
self.debugging = 0
|
||||
self.welcome = self.getresp()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue