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

scad_tokens.py:55: SyntaxWarning: invalid escape sequence '\&' #214

Open
andyDoucette opened this issue Feb 1, 2025 · 3 comments
Open

Comments

@andyDoucette
Copy link

andyDoucette commented Feb 1, 2025

A script to reproduce using this version of BOSL2.

fill.py

#!/usr/bin/python3

from solid import *

b2=include('BOSL2/std.scad')
[andromodon@spectre fill]$ ./fill.py 
/usr/local/lib/python3.12/dist-packages/solid/py_scadparser/scad_tokens.py:55: SyntaxWarning: invalid escape sequence '\&'
  t_AND = "\&\&"
/usr/local/lib/python3.12/dist-packages/solid/py_scadparser/scad_tokens.py:56: SyntaxWarning: invalid escape sequence '\|'
  t_OR = "\|\|"

The fix is to modify scad_tokens.py and change these lines to this:

t_AND = r"\&\&"
t_OR = r"\|\|"
@jeff-dh
Copy link
Contributor

jeff-dh commented Feb 3, 2025 via email

@andyDoucette
Copy link
Author

andyDoucette commented Feb 3, 2025 via email

@jeff-dh
Copy link
Contributor

jeff-dh commented Feb 3, 2025 via email

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