HomePhorge

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

Description

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

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.

Reviewers: machniak, mollekopf

Reviewed By: mollekopf

Differential Revision: https://git.kolab.org/D3229

Details

Provenance
sicherhaAuthored on Jun 4 2021, 4:50 PM
sicherhaPushed on Jan 10 2022, 8:42 PM
Reviewer
mollekopf
Differential Revision
D3229: [Python 3] Use print() as function instead of statement
Parents
rP7750671314e6: [Python 3] Use 0o prefix for octal numbers
Branches
Unknown
Tags
Unknown
Build Status
Buildable 37831