print 'Sending %d bytes' % len(bytes) invalid syntax
Closed this issue · 2 comments
2n2n commented
I tried running your application blocking-server/slowpoetry.py with python 3.4 but when I execute:
python blocking-server/slowpoetry.py poetry/ecstasy.txt
it says invalid syntax on line 62 but when I checked I think it's correct. maybe python version difference? It would really help if you would also create similar program for python3 as well?
jdavisp3 commented
It must be yes, I never tried running this under Python 3.
tripleee commented
The Python 3 equivalent would be print('Sending {0:d} bytes'.format(len(bytes)))
but porting to Python 3 is probably going to require a lot more than that.