Page MenuHomePhorge

[Python 3] Use print() as function instead of statement
ClosedPublic

Authored by sicherha on Jan 8 2022, 11:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 3:23 AM
Unknown Object (File)
Tue, Mar 26, 1:46 AM
Unknown Object (File)
Sun, Mar 24, 5:00 PM
Unknown Object (File)
Mar 11 2024, 4:35 AM
Unknown Object (File)
Mar 11 2024, 4:35 AM
Unknown Object (File)
Mar 11 2024, 4:32 AM
Unknown Object (File)
Mar 11 2024, 4:08 AM
Unknown Object (File)
Mar 2 2024, 7:28 PM
Subscribers
None

Details

Summary

print() has been a function since Python 2.6; the old behaviour was
dropped in Python 3.0.

To use the named file argument in Python 2, we need to import
print_function from the future module.

Diff Detail

Repository
rP pykolab
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sicherha created this revision.
This revision is now accepted and ready to land.Jan 10 2022, 9:53 AM
This revision was landed with ongoing or failed builds.Jan 10 2022, 8:42 PM
This revision was automatically updated to reflect the committed changes.