Skip to content
This repository was archived by the owner on May 8, 2020. It is now read-only.
This repository was archived by the owner on May 8, 2020. It is now read-only.

SyntaxError: invalid escape sequence #294

@steven-81

Description

@steven-81

With Python 3.7 there is an issue with invalid escape characters (see error message below).

from pyppeteer.us_keyboard_layout import keyDefinitions
E File "/Users/xxxxx/.virtualenvs/xxxxxx/lib/python3.7/site-packages/pyppeteer/us_keyboard_layout.py", line 73
E 'Digit9': {'keyCode': 57, 'code': 'Digit9', 'shiftKey': '(', 'key': '9'},
E ^
E SyntaxError: invalid escape sequence (

Current work around is making a raw string.

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