Ignore:
Timestamp:
Jan 30, 2007, 1:36:06 PM (18 years ago)
Author:
duncan
Message:

fix in cache. None was giving different hashes, on some linux boxes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/caching/caching.py

    r3715 r4198  
    13231323  import types
    13241324
     1325  # On some architectures None gets different hash values
     1326  if T is None:
     1327    return(1)
     1328
    13251329  # Get hash vals for hashable entries
    13261330  #
     
    13691373  for k in range(len(keys)):
    13701374    try:
    1371       h = hash(D[keys[k]])
     1375      h = myhash(D[keys[k]])
    13721376      hvals.append(h)
    13731377    except:
Note: See TracChangeset for help on using the changeset viewer.