]> granicus.if.org Git - python/commit
[3.6] bpo-32028: Fix suggestions for indented print statements (GH-5249)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 20 Jan 2018 03:56:31 +0000 (19:56 -0800)
committerNick Coghlan <ncoghlan@gmail.com>
Sat, 20 Jan 2018 03:56:31 +0000 (13:56 +1000)
commit4002d5dbf4c058bbf2462f9f5dea057956d1caff
treea6da37135e5e5e0f9f830db514a8849597f4b608
parent051650ab8de620dd7e3c557f8227c43439ea8c6a
[3.6] bpo-32028: Fix suggestions for indented print statements (GH-5249)

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.
(cherry picked from commit d57f26c753dce61f72b52b96db3a3253d9f2fc3e)
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