Skip to content

Commit

Permalink
Fix SyntaxWarning: invalid escape sequence '\e'
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Feb 3, 2025
1 parent b4255d0 commit f446bfe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pyautogui/_pyautogui_x11.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ def _keyUp(key):
'\t': _display.keysym_to_keycode(Xlib.XK.string_to_keysym('Tab')),
'\n': _display.keysym_to_keycode(Xlib.XK.string_to_keysym('Return')), # for some reason this needs to be cr, not lf
'\r': _display.keysym_to_keycode(Xlib.XK.string_to_keysym('Return')),
'\e': _display.keysym_to_keycode(Xlib.XK.string_to_keysym('Escape')),
'!': _display.keysym_to_keycode(Xlib.XK.string_to_keysym('exclam')),
'#': _display.keysym_to_keycode(Xlib.XK.string_to_keysym('numbersign')),
'%': _display.keysym_to_keycode(Xlib.XK.string_to_keysym('percent')),
Expand Down

0 comments on commit f446bfe

Please sign in to comment.