]> granicus.if.org Git - python/commit
bpo-32028: Fix suggestions for indented print statements (GH-4688)
authorSanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
Sat, 20 Jan 2018 03:12:22 +0000 (08:42 +0530)
committerNick Coghlan <ncoghlan@gmail.com>
Sat, 20 Jan 2018 03:12:22 +0000 (13:12 +1000)
commitd57f26c753dce61f72b52b96db3a3253d9f2fc3e
tree45edd2bbbd2a8abdfefacf29a52ad45e8a1dfbb4
parent6690bb9f17d34eb3dec0aca8919d8d27d6c3c452
bpo-32028: Fix suggestions for indented print statements (GH-4688)

The suggested replacement for print statements previously failed to account
for leading whitespace and hence could end up including unwanted text in
the proposed call to the print builtin.

Patch by Sanyam Khurana.
Lib/test/test_print.py
Misc/NEWS.d/next/Core and Builtins/2017-12-03-22-29-13.bpo-32028.KC2w4Q.rst [new file with mode: 0644]
Objects/exceptions.c