Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.12 SyntaxWarning: invalid escape sequence #27

Open
xrouge opened this issue Jul 6, 2024 · 0 comments · May be fixed by #31
Open

Python 3.12 SyntaxWarning: invalid escape sequence #27

xrouge opened this issue Jul 6, 2024 · 0 comments · May be fixed by #31

Comments

@xrouge
Copy link

xrouge commented Jul 6, 2024

P4Transfer.py:1626: SyntaxWarning: invalid escape sequence '\('
  re_transferProblems = re.compile(".*fix problems then use 'p4 submit -c ([0-9]+)'.\nSome file\(s\) could not be transferred from client")

https://docs.python.org/dev/whatsnew/3.12.html#other-language-changes

A backslash-character pair that is not a valid escape sequence now generates a SyntaxWarning, instead of DeprecationWarning.

I think it should be a raw string

MarcAudy added a commit to MarcAudy/p4transfer that referenced this issue Jul 29, 2024
@MarcAudy MarcAudy linked a pull request Jul 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant