Changeset 5042
- Timestamp:
- Feb 18, 2008, 5:58:28 PM (17 years ago)
- Location:
- anuga_core/source/anuga/utilities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/system_tools.py
r4986 r5042 185 185 #from binascii import crc32 #(works as well on 32 bit machines) 186 186 187 fid = open(filename )187 fid = open(filename, 'rb') # Use binary for portability 188 188 crcval = crc32(fid.read(max_length)) 189 189 -
anuga_core/source/anuga/utilities/test_system_tools.py
r5041 r5042 107 107 filename = 'crc_test_file.png' 108 108 109 ref_crc = -1808745910# Computed on Windows box109 ref_crc = 1203293305 # Computed on Windows box 110 110 checksum = compute_checksum(filename) 111 111
Note: See TracChangeset
for help on using the changeset viewer.