Skip to content

Fix SyntaxWarnings due to invalid escape sequences (Python 3.12 compatibility) #1050

@Arian-Ott

Description

@Arian-Ott

Hi,
I'm the Debian maintainer for python-jieba.
While testing with recent Python versions, we noticed several
SyntaxWarning: invalid escape sequence warnings.

I've attached a patch that fixes these by using raw strings for regex. We are already using this fix in Debian.

0002-fix-syntax-warnings.patch

Best regards,
Arian Ott

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