Bug 180592 - [python] Replace print operator with print() function for python3 compatibility
Summary: [python] Replace print operator with print() function for python3 compatibility
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Konstantin Tokarev
Keywords: InRadar
Depends on:
Reported: 2017-12-08 11:36 PST by Konstantin Tokarev
Modified: 2017-12-08 13:57 PST (History)
16 users (show)

See Also:

Patch (85.91 KB, patch)
2017-12-08 11:40 PST, Konstantin Tokarev
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Tokarev 2017-12-08 11:36:16 PST
Python 2 will be EOL in 2020: https://pythonclock.org/

Let's try to adjust code base to be compatible with Python 3, in small steps. The most abundant anti-pattern is use of "print" statement, which is replaced with print() function in py3. This patch contains only trivial changes which don't require "from __future__ import print_function".
Comment 1 Konstantin Tokarev 2017-12-08 11:40:38 PST
Created attachment 328845 [details]
Comment 2 Build Bot 2017-12-08 11:42:52 PST
This patch modifies the inspector protocol generator. Please ensure that you have rebaselined any generator test results (i.e., by running `Tools/Scripts/run-inspector-generator-tests --reset-results`)
Comment 3 WebKit Commit Bot 2017-12-08 13:56:13 PST
Comment on attachment 328845 [details]

Clearing flags on attachment: 328845

Committed r225698: <https://trac.webkit.org/changeset/225698>
Comment 4 WebKit Commit Bot 2017-12-08 13:56:15 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2017-12-08 13:57:36 PST