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)
Thu, Jul 4, 8:12 AM
Unknown Object (File)
Sun, Jun 30, 12:44 PM
Unknown Object (File)
Sun, Jun 30, 4:46 AM
Unknown Object (File)
Sun, Jun 30, 4:46 AM
Unknown Object (File)
Thu, Jun 27, 10:51 AM
Unknown Object (File)
Fri, Jun 21, 4:13 PM
Unknown Object (File)
Thu, Jun 20, 1:37 PM
Unknown Object (File)
Mon, Jun 17, 3:40 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
Branch
03-print
Lint
Lint Errors
SeverityLocationCodeMessage
Errorcyruslib.py:45E203PEP8 E203
Errorcyruslib.py:46E203PEP8 E203
Errorcyruslib.py:47E203PEP8 E203
Errorcyruslib.py:50E203PEP8 E203
Errorcyruslib.py:78E701PEP8 E701
Errorcyruslib.py:90E701PEP8 E701
Errorcyruslib.py:109E701PEP8 E701
Errorcyruslib.py:403E701PEP8 E701
Errorcyruslib.py:514E701PEP8 E701
Errorcyruslib.py:531E701PEP8 E701
Errorcyruslib.py:533E701PEP8 E701
Errorcyruslib.py:802E701PEP8 E701
Errorcyruslib.py:816E701PEP8 E701
Errorcyruslib.py:818E701PEP8 E701
Errorext/python/Tools/freeze/freeze.py:126E701PEP8 E701
Errorext/python/Tools/freeze/freeze.py:329E701PEP8 E701
Errorext/python/Tools/freeze/freeze.py:435E401PEP8 E401
Errorext/python/Tools/freeze/freeze.py:476E222PEP8 E222
Errorext/python/Tools/freeze/makeconfig.py:13E701PEP8 E701
Errorext/python/Tools/freeze/makeconfig.py:21E228PEP8 E228
Errorext/python/Tools/freeze/makefreeze.py:33E701PEP8 E701
Errorext/python/Tools/freeze/winmakemakefile.py:1E401PEP8 E401
Errorext/python/Tools/freeze/winmakemakefile.py:32E203PEP8 E203
Errorext/python/Tools/freeze/winmakemakefile.py:33E203PEP8 E203
Errorext/python/Tools/freeze/winmakemakefile.py:34E203PEP8 E203
Unit
No Test Coverage
Build Status
Buildable 37777
Build 15226: arc lint + arc unit

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.