#5124 [py3] Port to print() function
Closed: Fixed None Opened 8 years ago by cheimes.

In Python 3 the print statement has been replaced by a print() function. For Python 2.6 and 2.7 the print function is available as a future import. https://docs.python.org/2.7/library/functions.html#print

Modernize can migrate all print statements to print() functions. The redirect operation {{{print >>}}} is supported, too. A bug in modernize <= 0.4.0 places the future import above shebang and comment lines, see #5123. The git master is fixed, though.


FreeIPA is fully Python 3 compatible since 4.3.0, which means all print statements have been converted to print() function calls.

Metadata Update from @cheimes:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA Python 3 support

7 years ago

Login to comment on this ticket.

Metadata