Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Python 3.6 deprecated escape sequences. #7924

Closed
@Carreau

Description

@Carreau

Python 3.6 has deprecated invalid backslash-pairs:

A backslash-character pair that is not a valid escape sequence now generates a DeprecationWarning. Although this will eventually become a SyntaxError,[...]

Matplotlib is full of these in docstrings and regular expressions.

Python right now try to do the right things and "magically" inserting an extra \ but this can be a sign of a latent bug.

I would suggest to turn the test suite to make these warnings visible and slowly start to fix it, eventually turning this into an error (on 3.6 and above) to make sure more are not injected.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions