summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Library/2021-07-30-23-27-30.bpo-44667.tu0Xrv.rst
blob: 5b7e20e0afdf5e7ed2c5847574f00972bf74c820 (plain)
1
2
3
4
The :func:`tokenize.tokenize` doesn't incorrectly generate a ``NEWLINE``
token if the source doesn't end with a new line character but the last line
is a comment, as the function is already generating a ``NL`` token. Patch by
Pablo Galindo