]> granicus.if.org Git - python/commit
bpo-32685: Improve suggestion for print statement (GH-5380)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 28 Jan 2018 11:31:48 +0000 (03:31 -0800)
committerNick Coghlan <ncoghlan@gmail.com>
Sun, 28 Jan 2018 11:31:48 +0000 (21:31 +1000)
commitb3b4b81d0147534151941105eba4af984acdc763
tree8c7cb347ea65b6eaa7eaf76a77c2df0d450294b0
parent854f0424de389f023b375dfd0b50c34dea29e8f8
bpo-32685: Improve suggestion for print statement (GH-5380)

Better account for single-line compound statements and
semi-colon separated statements when suggesting
Py3 replacements for Py2 print statements.

Initial patch by Nitish Chandra.
(cherry picked from commit 43c0f1ac5ed8bc9c3bd048d2ce4de4c98a83de99)
Lib/test/test_print.py
Misc/NEWS.d/next/Core and Builtins/2018-01-28-12-25-06.bpo-32685.nGctze.rst [new file with mode: 0644]
Objects/exceptions.c