Make the override-feature-defines script compatible with Python v3
authorzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Jan 2013 17:33:02 +0000 (17:33 +0000)
committerzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Jan 2013 17:33:02 +0000 (17:33 +0000)
https://bugs.webkit.org/show_bug.cgi?id=105742

Reviewed by Martin Robinson.

Instead of printing output through a statement, use the print function and format
the output using the str.format method. This makes the script runnable with Python v3.

* gtk/override-feature-defines:
(adjust_feature_defines_makefile):

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

Tools/ChangeLog
Tools/gtk/override-feature-defines

index 4c964eed032f0f89bab3ba1db79b2d574e1f186d..2555ac093eb30230c4e228544ddc0a2e69561893 100644 (file)
@@ -1,3 +1,16 @@
+2013-01-08  Zan Dobersek  <zandobersek@gmail.com>
+
+        Make the override-feature-defines script compatible with Python v3
+        https://bugs.webkit.org/show_bug.cgi?id=105742
+
+        Reviewed by Martin Robinson.
+
+        Instead of printing output through a statement, use the print function and format
+        the output using the str.format method. This makes the script runnable with Python v3.
+
+        * gtk/override-feature-defines:
+        (adjust_feature_defines_makefile):
+
 2013-01-08  Heikki Paajanen  <heikki.paajanen@palm.com>
 
         [Qt] Fix libxml2 config test
index 9b93f6af58d8f6e156f67207dc7c1050f0a1c0db..258b8e5a3ebf4b0102822b128c9c5158326b65bd 100755 (executable)
@@ -30,7 +30,7 @@ def adjust_feature_defines_makefile(build_dir, feature_defines_overriding):
         f.write(feature_defines_makefile)
 
     if overriden_feature_defines:
-        print "The following feature defines were overriden:\n%s" % ', '.join(overriden_feature_defines)
+        print("The following feature defines were overriden:\n{0}".format(', '.join(overriden_feature_defines)))
 
 def override_feature_defines(build_dir):
     copy_feature_defines_makefile()