Commits

Jason R. Coombs committed 8be7926

Fix file saving using dccreceive.py on Windows. Fixes #2863199

Comments (0)

Files changed (1)

scripts/dccreceive.py

             print "A file named", self.filename,
             print "already exists. Refusing to save it."
             self.connection.quit()
-        self.file = open(self.filename, "w")
+        self.file = open(self.filename, "wb")
         peeraddress = irc.client.ip_numstr_to_quad(args[2])
         peerport = int(args[3])
         self.dcc = self.dcc_connect(peeraddress, peerport, "raw")