def _getRecentTile(layer, coord, format):
 key = (layer, coord, format)
 (body, use_by) = _recent_tiles['hash'].get(key, (None, 0))
 if (body is None):
  return None
 if (time() < use_by):
  logging.debug('TileStache.Core._addRecentTile() found tile in recent tiles: %s', key)
  return body
 try:
  del _recent_tiles['hash'][key]
 except KeyError:
  pass
 return None

def _getRecentTile ( layer , coord , format ) : key = ( layer , coord , format ) ( body , use_by ) = _recent_tiles [ 'hash' ] . get ( key , ( None , 0 ) ) if ( body is None ) : return None if ( time ( ) < use_by ) : logging . debug ( 'TileStache.Core._addRecentTile() found tile in recent tiles: %s' , key ) return body try : del _recent_tiles [ 'hash' ] [ key ] except KeyError : pass return None
return the body of a recent tile .