Web Inspector: make generate-inspector-protocol-version work with python3
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2013 20:14:33 +0000 (20:14 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2013 20:14:33 +0000 (20:14 +0000)
https://bugs.webkit.org/show_bug.cgi?id=114717

Revision r146765 added print() calls that made the script complain about
invalid syntax when using python3.

This commit replaces such calls with calls to sys.stdout.write(), analogous
to the sys.stderr.write() ones already used throughout the file.

Patch by Sergio Correia <sergio.correia@openbossa.org> on 2013-04-17
Reviewed by Timothy Hatcher.

No new tests. No user visible behavior changed.

* inspector/generate-inspector-protocol-version:
(main):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@148630 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/generate-inspector-protocol-version

index 9cba5c2..e35b8b4 100644 (file)
@@ -1,3 +1,21 @@
+2013-04-17  Sergio Correia  <sergio.correia@openbossa.org>
+
+        Web Inspector: make generate-inspector-protocol-version work with python3 
+        https://bugs.webkit.org/show_bug.cgi?id=114717
+
+        Revision r146765 added print() calls that made the script complain about 
+        invalid syntax when using python3.
+
+        This commit replaces such calls with calls to sys.stdout.write(), analogous
+        to the sys.stderr.write() ones already used throughout the file.
+
+        Reviewed by Timothy Hatcher.
+
+        No new tests. No user visible behavior changed.
+
+        * inspector/generate-inspector-protocol-version:
+        (main):
+
 2013-04-17  Seokju Kwon  <seokju.kwon@gmail.com>
 
         Web Inspector: Fix Localized string warngs
index 12f4298..5552a1b 100755 (executable)
@@ -427,9 +427,9 @@ def main():
         changes = compare_schemas(
             load_json(input_path)["domains"], load_json(baseline_path)["domains"], True)
         if len(changes) > 0:
-            print "  Public changes since %s:" % version
+            sys.stdout.write("  Public changes since %s:\n" % version)
             for change in changes:
-                print "    %s" % change
+                sys.stdout.write("    %s\n" % change)
 
     output_file.write("""
 #ifndef InspectorProtocolVersion_h