dccreceive example line 29 (version 0.4.8) should be:
self.file = open(self.filename, 'w+b')
instead of
self.file = open(self.filename, 'w')
This won't work correctly on Windows since Windows does string encoding (i.e., change '\n' to '\r\n'). The fix is to open the file for writing in binary mode instead of text mode.
'w+b' or 'wb' ?
Both works.
Fixed in 8be7926dbea1