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

Sintax Error #3

Open
JamilMGomez opened this issue May 15, 2024 · 3 comments
Open

Sintax Error #3

JamilMGomez opened this issue May 15, 2024 · 3 comments

Comments

@JamilMGomez
Copy link

Hello, I`m trying to run the script but every time it shows this error and nothing changes:

File "labwc-gtktheme.py", line 36
     color.append(f"@{tokval}")
                             ^
Syntax Error: invalid syntax
@johanmalm
Copy link
Collaborator

What version of python are you running?

@johanmalm
Copy link
Collaborator

Just had a look. Seems like f-strings are supported from v3.6

@Consolatis
Copy link
Member

Consolatis commented May 15, 2024

Alternative "@{}".format(tokval) or just "@" + tokval in case you want to support Python < 3.6 as well.

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

3 participants