Bernhard M. Wiedemann added the comment:

should probably be

   lines = [x[n*64:(n+1)*64] for n in range(((len(x)-1)//64)+1)]

to avoid an empty line added when the last line is full
which once again shows why people prefer to use standard libraries
for this kind of work

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25870>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to