Skip to content

Deprecation warning due to invalid escape sequences in Python 3.7 #423

@tirkarthi

Description

@tirkarthi

Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals.

find . -iname '*.py' | grep -v example | xargs -P 4 -I{} python3.8 -Wall -m py_compile {}
./pyautogui/_pyautogui_x11.py:262: DeprecationWarning: invalid escape sequence \e
  '\e': _display.keysym_to_keycode(Xlib.XK.string_to_keysym('Escape')),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions