def _mouseUp(x, y, button):
    """Send the mouse up event to Windows by calling the mouse_event() win32
    function.

    Args:
      x (int): The x position of the mouse event.
      y (int): The y position of the mouse event.
      button (str): The mouse button, either 'left', 'middle', or 'right'

    Returns:
      None
    """
    if button == 'left':
        try:
            _sendMouseEvent(MOUSEEVENTF_LEFTUP, x, y)
        except (PermissionError, OSError): # TODO: We need to figure out how to prevent these errors, see https://github.com/asweigart/pyautogui/issues/60
            pass
    elif button == 'middle':
        try:
            _sendMouseEvent(MOUSEEVENTF_MIDDLEUP, x, y)
        except (PermissionError, OSError): # TODO: We need to figure out how to prevent these errors, see https://github.com/asweigart/pyautogui/issues/60
            pass
    elif button == 'right':
        try:
            _sendMouseEvent(MOUSEEVENTF_RIGHTUP, x, y)
        except (PermissionError, OSError): # TODO: We need to figure out how to prevent these errors, see https://github.com/asweigart/pyautogui/issues/60
            pass
    else:
        assert False, "button argument not in ('left', 'middle', 'right')"
def _mouseUp ( x , y , button ) : if button == 'left' : try : _sendMouseEvent ( MOUSEEVENTF_LEFTUP , x , y ) except ( PermissionError , OSError ) : pass elif button == 'middle' : try : _sendMouseEvent ( MOUSEEVENTF_MIDDLEUP , x , y ) except ( PermissionError , OSError ) : pass elif button == 'right' : try : _sendMouseEvent ( MOUSEEVENTF_RIGHTUP , x , y ) except ( PermissionError , OSError ) : pass else : assert False , "button argument not in ('left', 'middle', 'right')"
Send the mouse up event to Windows by calling the mouse_event() win32
    function.

    Args:
      x (int): The x position of the mouse event.
      y (int): The y position of the mouse event.
      button (str): The mouse button, either 'left', 'middle', or 'right'

    Returns:
      None