]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior...
authorAmmar Askar <ammar_askar@hotmail.com>
Fri, 6 Jul 2018 10:23:13 +0000 (06:23 -0400)
committerTal Einat <taleinat+github@gmail.com>
Fri, 6 Jul 2018 10:23:13 +0000 (13:23 +0300)
commit7829bba45d0e2446f3a0ca240bfe46959f01071e
treeb4450692df47c1de32b7a7de5e941a5fda6e809a
parent9720f60f2aba457121bfe42d09aa3ed91f28b86f
[2.7] bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (GH-7891) (#8133)

Most of the change involves fixing up the test suite, which previously made
the assumption that there wouldn't be a new line if the input didn't end in
one.

Contributed by Ammar Askar.

(cherry picked from commit c4ef4896eac86a6759901c8546e26de4695a1389)
Lib/test/test_tokenize.py
Lib/tokenize.py
Misc/NEWS.d/next/Library/2018-06-24-01-57-14.bpo-33899.IaOcAr.rst [new file with mode: 0644]