GujuBoy wrote:
i have the following code...which works fine in UNIX but then i move it
over to WINDOWS XP and check the sum on the same file that i tested on
unix and i get different results.

def checksum(fileobj):
    filedata = array.array('B', fileobj.read())

Did you make sure you opened this "fileobj" using "rb" instead of the default "r"? Look for the open() call that created it and put "rb" in... otherwise CRLF combinations are converted to LF on input...

-Peter
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to