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

Incompatible with python 3 #4

Open
ryandesign opened this issue Mar 9, 2023 · 2 comments
Open

Incompatible with python 3 #4

ryandesign opened this issue Mar 9, 2023 · 2 comments

Comments

@ryandesign
Copy link
Contributor

% flagpoll --version
  File "/opt/local/bin/flagpoll", line 418
    print list_string.strip()
    ^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
@Br1tBreaker
Copy link

Bro It looks like there is a syntax error in the flagpoll script you are trying to run. The error message suggests that there is a print statement without parentheses, which is not valid syntax in Python 3.

To fix the error, you need to add parentheses around the argument to the print statement. For example, instead of:

python

print list_string.strip()
You should write:

scss

print(list_string.strip())
This will ensure that the print statement is valid Python 3 syntax. Once you have made this change, try running the flagpoll --version command again and see if it works correctly.

@ryandesign
Copy link
Contributor Author

Exactly.

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