parameters: (device)
docstring: List the tombstone files on the device.
  
    Args:
      device: An instance of DeviceUtils.
  
    Yields:
      Tuples of (tombstone filename, date time of file on device).
docstring_summary: List the tombstone files on the device.
docstring_tokens: List the tombstone files on the device .
function: def _ListTombstones(device):
    """List the tombstone files on the device.
  
    Args:
      device: An instance of DeviceUtils.
  
    Yields:
      Tuples of (tombstone filename, date time of file on device).
    """
    try:
      if not device.PathExists('/data/tombstones', as_root=True):
        return
      entries = device.StatDirectory('/data/tombstones', as_root=True)
      for entry in entries:
        if 'tombstone' in entry['filename']:
          yield (entry['filename'],
                 datetime.datetime.fromtimestamp(entry['st_mtime']))
    except device_errors.CommandFailedError:
      logging.exception('Could not retrieve tombstones.')
    except device_errors.CommandTimeoutError:
      logging.exception('Timed out retrieving tombstones.')
function_tokens: def _ListTombstones ( device ) : try : if not device . PathExists ( '/data/tombstones' , as_root = True ) : return entries = device . StatDirectory ( '/data/tombstones' , as_root = True ) for entry in entries : if 'tombstone' in entry [ 'filename' ] : yield ( entry [ 'filename' ] , datetime . datetime . fromtimestamp ( entry [ 'st_mtime' ] ) ) except device_errors . CommandFailedError : logging . exception ( 'Could not retrieve tombstones.' ) except device_errors . CommandTimeoutError : logging . exception ( 'Timed out retrieving tombstones.' )