Changes between Version 9 and Version 10 of HashSourceCodes
- Timestamp:
- Jan 7, 2009, 11:03:14 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HashSourceCodes
v9 v10 317 317 {{{ 318 318 #!python 319 import struct, os 320 319 321 def hashFile(name): 320 322 try: … … 323 325 bytesize = struct.calcsize(longlongformat) 324 326 325 f = file(name, "rb")327 f = open(name, "rb") 326 328 327 329 filesize = os.path.getsize(name)