Fix FullScreen crash in Webapp
[platform/framework/web/chromium-efl.git] / ppapi / generate_ppapi_include_tests.py
index 97daf24..e416991 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Copyright 2012 The Chromium Authors
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
 
@@ -17,6 +17,8 @@ These tests are checked in to SVN.
 #                  tests to some 'generated' area, and remove them from version
 #                  control.
 
+from __future__ import print_function
+
 import re
 import os
 import sys
@@ -75,11 +77,11 @@ def VerifyGypFile(gyp_file_data):
   in_gyp_not_file = gyp_sources - file_sources
   in_file_not_gyp = file_sources - gyp_sources
   if len(in_gyp_not_file):
-    print 'Found source file(s) in ppapi.gyp but not in the directory:', \
-      in_gyp_not_file
+    print('Found source file(s) in ppapi.gyp but not in the directory:', \
+      in_gyp_not_file)
   if len(in_file_not_gyp):
-    print 'Found source file(s) in the directory but not in ppapi.gyp:', \
-      in_file_not_gyp
+    print('Found source file(s) in the directory but not in ppapi.gyp:', \
+      in_file_not_gyp)
   error_count = len(in_gyp_not_file) + len(in_file_not_gyp)
   if error_count:
     sys.exit(error_count)
@@ -93,7 +95,7 @@ def WriteLines(filename, lines):
 
 
 COPYRIGHT_STRING_C = \
-"""/* Copyright (c) 2010 The Chromium Authors. All rights reserved.
+"""/* Copyright 2010 The Chromium Authors
  * Use of this source code is governed by a BSD-style license that can be
  * found in the LICENSE file.
  *
@@ -103,7 +105,7 @@ COPYRIGHT_STRING_C = \
 """
 
 COPYRIGHT_STRING_CC = \
-"""// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+"""// Copyright 2010 The Chromium Authors
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 //
@@ -122,7 +124,7 @@ def GetSourcesForTarget(target_name, gyp_file_data):
       sources = target[GYP_SOURCES_KEY]
       sources.sort()
       return sources
-  print 'Warning: no target named ', target, ' found.'
+  print('Warning: no target named ', target, ' found.')
   return []
 
 
@@ -168,4 +170,4 @@ def main():
 
 
 if __name__ == '__main__':
-    sys.exit(main())
+  sys.exit(main())