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@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: http://svn.webkit.org/repository/webkit/trunk@148630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d5c2678d
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
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment