hikvision-tftpd
hikvision-tftpd copied to clipboard
Python3 Syntax Error
trafficstars
root@APU2-SHAWSECURE:/tmp# python3 hiktest.py
File "hiktest.py", line 65
except hikvision_tftpd.Error, e:
^
SyntaxError: invalid syntax
root@APU2-SHAWSECURE:/tmp# python3 hiktftp.py
File "hiktftp.py", line 49
print 'Serving %d-byte %s (block size %d, %d blocks)' % (
^
SyntaxError: invalid syntax
Feel free to give commit 8d7dbb8 on the new python3 branch a try. Automated tests pass; I can't actually flash a device right now so not committing to master yet.
Just confirming I tried this with python 3.11 and it worked. You're a life saver, thanks Scott.
Works great for Python3! Was doing my nut in till I searched through pulls/issues and found this.