Ignore:
Timestamp:
Feb 19, 2007, 2:25:18 PM (18 years ago)
Author:
nick
Message:

small change to screen_catcher and added cases for true and false to caching

File:
1 edited

Legend:

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

    r4198 r4270  
    13231323  import types
    13241324
    1325   # On some architectures None gets different hash values
     1325  # On some architectures None, False and True gets different hash values
    13261326  if T is None:
     1327    return(-1)
     1328  if T is False:
     1329    return(0)
     1330  if T is True:
    13271331    return(1)
    13281332
Note: See TracChangeset for help on using the changeset viewer.