You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2009-07-12.17:07:09.633>created_at=<Date2008-03-18.23:42:17.813>labels= ['type-bug', 'expert-2to3']
title='Check 2to3 for support of print function.'updated_at=<Date2009-07-12.17:07:09.632>user='https://github.com/ericvsmith'
bpo-1633807 is a backport of the print function to 2.6, using a
__future__ import. Once it is committed, we need to ensure that 2to3
does the right thing (namely, nothing) with print functions in modules
that have the __future__ import.
I've updated the fixer (checkin to come shortly), but 2to3 gets upset when
you it comes across print statements with kwargs (eg: print("spam", end="
")), so the tests will be commented out 'till this is fixed.
As of r61635, the fix_print fixer has been fixed and tests have been added
(which will assert False when 2to3 is fixed so it can handle print(**kwargs)).
Activity
ericvsmith commentedon Mar 18, 2008
bpo-1633807 is a backport of the print function to 2.6, using a
__future__ import. Once it is committed, we need to ensure that 2to3
does the right thing (namely, nothing) with print functions in modules
that have the __future__ import.
wolever commentedon Mar 19, 2008
I've updated the fixer (checkin to come shortly), but 2to3 gets upset when
you it comes across print statements with kwargs (eg: print("spam", end="
")), so the tests will be commented out 'till this is fixed.
wolever commentedon Mar 19, 2008
As of r61635, the fix_print fixer has been fixed and tests have been added
(which will
assert Falsewhen 2to3 is fixed so it can handleprint(**kwargs)).wolever commentedon Apr 24, 2008
Here is a patch that will detect a
from __future__ import print_functionand adjust the grammar appropriately.
Any objections?
collinwinter commentedon Apr 26, 2008
Reviewing...
benjaminp commentedon Jul 12, 2009
Fixed in r73981.