def release(button=LEFT):
location = get_position()<EOL>button_code, _, button_up, _ = _button_mapping[button]<EOL>e = Quartz.CGEventCreateMouseEvent(<EOL>None,<EOL>button_up,<EOL>location,<EOL>button_code)<EOL>if _last_click["<STR_LIT:time>"] is not None and _last_click["<STR_LIT:time>"] > datetime.datetime.now() - datetime.timedelta(microseconds=<NUM_LIT>) and _last_click["<STR_LIT>"] == button and _last_click["<STR_LIT>"] == location:<EOL><INDENT>Quartz.CGEventSetIntegerValueField(<EOL>e,<EOL>Quartz.kCGMouseEventClickState,<EOL>_last_click["<STR_LIT>"])<EOL><DEDENT>Quartz.CGEventPost(Quartz.kCGHIDEventTap, e)<EOL>_button_state[button] = False<EOL>
Sends an up event for the specified button, using the provided constants