Md5 is different in Windows and Linux
Thomas Rachel
nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915 at spamschutz.glglgl.de
Mon Mar 2 18:45:31 EST 2015
Am 02.03.2015 20:14 schrieb sohcahtoa82 at gmail.com:
> On Monday, March 2, 2015 at 12:43:59 AM UTC-8, Sarvagya Pant wrote:
>> f = open("somefile.txt")
This one is the problem. Under Windows, you have to open the file in
binary to avoid that something "bad" happens with it.
So just do
f = open("somefile.txt", "rb")
and you should be fine.
> I don't know which is worse, the fact that you're composing your message in HTML, or the fact that you're using Comic Sans as your font.
#2 wouldn't be possible without #1...
Thomas
More information about the Python-list
mailing list