Bug 180592

Summary: [python] Replace print operator with print() function for python3 compatibility
Product: WebKit Reporter: Konstantin Tokarev <annulen>
Component: Tools / TestsAssignee: Konstantin Tokarev <annulen>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, cdumez, cgarcia, commit-queue, ews-watchlist, glenn, joepeck, keith_miller, lforschler, mark.lam, mcatanzaro, msaboff, rniwa, saam, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

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]
Patch
Comment 2 EWS Watchlist 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]
Patch

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
<rdar://problem/35942755>