[issue35107] untokenize() fails on tokenize output when a newline is missing

Irit Katriel report at bugs.python.org
Tue Jan 18 18:40:36 EST 2022


Irit Katriel <iritkatriel at gmail.com> added the comment:

I am unable to reproduce this on 3.11:


>>> tokenize.untokenize(tokenize.generate_tokens(io.StringIO('#').readline))
'#'

----------
nosy: +iritkatriel
status: open -> pending

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35107>
_______________________________________


More information about the Python-bugs-list mailing list