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

Please mark strings like "C:\Windows\Fonts" as raw string literals so \W will not be seen as escape sequence #225

Open
byteconcepts opened this issue Jan 4, 2025 · 1 comment

Comments

@byteconcepts
Copy link

Hi, since I upgraded my Linux OS and python I got errors that assume escape sequences in strings that should be marked as raw string literals.
This lead to numerous follow up errors.

Please just add an r before the string.

Here are the snippets that bugged myself:
(I did not search for more occurences, but maybe there are some more.)

nodes/nodes_xygrid.py:256
"fonts\Roboto-Regular.ttf" -> r"fonts\Roboto-Regular.ttf"

nodes/nodes_list.py:383
nodes/nodes_list.py:393
"C:\Windows\Fonts" -> r"C:\Windows\Fonts"

Many thanks in advance and for the great work you already have done!

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

No branches or pull requests

2 participants
@byteconcepts and others