def can_access (handle):
  try:
    return win32event.WaitForSingleObject (handle, 10) not in (win32event.WAIT_TIMEOUT, win32event.WAIT_ABANDONED)
  except win32event.error, (errno, errctx, errmsg):
    if errno != (winerror.ERROR_ACCESS_DENIED,):
      return False
    else:
      raise
dataset/ETHPy150Open tjguk/winsys/random/file_handles.py/can_access/operator `in` -> `!=`