k6control
k6control copied to clipboard
Print errors under Python 3
Running k6control
with Python3 generates multiple errors:
SyntaxError: Missing parentheses in call to 'print'. Did you mean print()?
@thorstenkampe k6control is a python 2 application. I'd love to get a PR that makes it run as both a Python 2 and Python 3 app.
Sorry, I don't know what a PR is. Basically you would have to...
- convert the print statement to a function by adding parentheses. This does not affect Python2 if you're printing strings.
- change
/
to//
. This should also not affect Python 2
@thorstenkampe k6control is a python 2 application. I'd love to get a PR that makes it run as both a Python 2 and Python 3 app.
Time to go fully Python 3 now - Py2 is dead as of this year (see #4 for making this Python3 compat)