This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ammar2
Recipients ammar2, gregory.p.smith, meador.inge, taleinat, terry.reedy
Date 2018-10-29.22:49:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1540853372.24.0.788709270274.issue35107@psf.upfronthosting.co.za>
In-reply-to
Content
Looks like this is caused by this line here: 

https://github.com/python/cpython/blob/b83d917fafd87e4130f9c7d5209ad2debc7219cd/Lib/tokenize.py#L551-L558

which adds a newline token implicitly after comments. Since the input didn't terminate with a '\n', the code to add a newline at the end of input kicks in.
History
Date User Action Args
2018-10-29 22:49:32ammar2setrecipients: + ammar2, terry.reedy, gregory.p.smith, taleinat, meador.inge
2018-10-29 22:49:32ammar2setmessageid: <1540853372.24.0.788709270274.issue35107@psf.upfronthosting.co.za>
2018-10-29 22:49:32ammar2linkissue35107 messages
2018-10-29 22:49:32ammar2create