Re: checksum works in unix but not win32 os

2005-03-29 Thread Peter Hansen
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 "f

Re: checksum works in unix but not win32 os

2005-03-29 Thread Trent Mick
[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()) > totbytes = len(f

checksum works in unix but not win32 os

2005-03-29 Thread GujuBoy
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()) totbytes = len(filedata) result = 0 de