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

f-string expression part cannot include a backslash #5

Open
ausgerechnet opened this issue Sep 19, 2024 · 0 comments
Open

f-string expression part cannot include a backslash #5

ausgerechnet opened this issue Sep 19, 2024 · 0 comments
Assignees

Comments

@ausgerechnet
Copy link
Owner

The reason why tests do not run successfully on the spheroscope branch are lines 952f. in database.py:

pattern = fr"/{nm.name}(\[{', ?'.join(nm.valency * [r'[^,\s]+?'])}\])"
repl = fr"/{nm.name}__{nm.valency}__v{nm.version}"

This yields a SyntaxError: f-string expression part cannot include a backslash. Does this maybe work in Python3.12, which is why you didn't catch it?

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