dell-charger-emulator
dell-charger-emulator copied to clipboard
Outdated python script
Hi It looks like dell-charger-data-editor.py no longer works on ubuntu 20.04.
File "dell-charger-data-editor_backup.py", line 192
print('%02x ' % byte, end='', flush=True)
^
SyntaxError: invalid syntax
Would it be easy to fix it ?
python 2 and 3 have different print syntax. Could this be the difference? I ran the python script today and it ran fine, I don't think the script is outdated.
Bingo ! Using python3 command before executing .py file solves the problem.