Changes between Version 9 and Version 10 of HashSourceCodes


Ignore:
Timestamp:
Jan 7, 2009, 11:03:14 AM (15 years ago)
Author:
guest
Comment:

I needed to make these changes to the python code to get it to work (tested on the sample files)

Legend:

Unmodified
Added
Removed
Modified
  • HashSourceCodes

    v9 v10  
    317317{{{
    318318#!python
     319import struct, os
     320
    319321def hashFile(name):
    320322      try:
     
    323325                bytesize = struct.calcsize(longlongformat)
    324326                   
    325                 f = file(name, "rb")
     327                f = open(name, "rb")
    326328                   
    327329                filesize = os.path.getsize(name)