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

utils.py: Fix "invalid escape sequence \(" warning #504

Merged
merged 2 commits into from
Apr 21, 2021

Conversation

glebm
Copy link
Contributor

@glebm glebm commented Jul 28, 2020

No description provided.

@glebm glebm marked this pull request as ready for review July 28, 2020 21:09
@glebm
Copy link
Contributor Author

glebm commented Aug 29, 2020

Please merge?

@jiaaro
Copy link
Owner

jiaaro commented Mar 6, 2021

Could you add a test or possibly just explain here how to reproduce the problem you were encountering before this change?

@glebm
Copy link
Contributor Author

glebm commented Mar 6, 2021

Simply running with Python 3 with warnings -Wall triggers this warning. Rightly so, because e.g. "\(" is not a valid backslash-escape sequence.

$ echo 'print("\\(")' | python -Wall 
<stdin>:1: DeprecationWarning: invalid escape sequence \(
\(

@GreyAlien502 GreyAlien502 merged commit e9ce529 into jiaaro:master Apr 21, 2021
@glebm glebm deleted the patch-1 branch April 21, 2021 12:31
@unitof
Copy link

unitof commented Apr 30, 2024

This still hasn't made it to a release, causing the warning to appear: #790. I'm seeing it running ManimCommunity/manim.

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 this pull request may close these issues.

4 participants