Changeset 148630 in webkit


Ignore:
Timestamp:
Apr 17, 2013 1:14:33 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

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.

Patch by Sergio Correia <Sergio Correia> on 2013-04-17
Reviewed by Timothy Hatcher.

No new tests. No user visible behavior changed.

  • inspector/generate-inspector-protocol-version:

(main):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r148628 r148630  
     12013-04-17  Sergio Correia  <sergio.correia@openbossa.org>
     2
     3        Web Inspector: make generate-inspector-protocol-version work with python3
     4        https://bugs.webkit.org/show_bug.cgi?id=114717
     5
     6        Revision r146765 added print() calls that made the script complain about
     7        invalid syntax when using python3.
     8
     9        This commit replaces such calls with calls to sys.stdout.write(), analogous
     10        to the sys.stderr.write() ones already used throughout the file.
     11
     12        Reviewed by Timothy Hatcher.
     13
     14        No new tests. No user visible behavior changed.
     15
     16        * inspector/generate-inspector-protocol-version:
     17        (main):
     18
    1192013-04-17  Seokju Kwon  <seokju.kwon@gmail.com>
    220
  • trunk/Source/WebCore/inspector/generate-inspector-protocol-version

    r146765 r148630  
    428428            load_json(input_path)["domains"], load_json(baseline_path)["domains"], True)
    429429        if len(changes) > 0:
    430             print "  Public changes since %s:" % version
     430            sys.stdout.write("  Public changes since %s:\n" % version)
    431431            for change in changes:
    432                 print "    %s" % change
     432                sys.stdout.write("    %s\n" % change)
    433433
    434434    output_file.write("""
Note: See TracChangeset for help on using the changeset viewer.