#!/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.
# tests to some 'generated' area, and remove them from version
# control.
+from __future__ import print_function
+
import re
import os
import sys
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)
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.
*
"""
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.
//
sources = target[GYP_SOURCES_KEY]
sources.sort()
return sources
- print 'Warning: no target named ', target, ' found.'
+ print('Warning: no target named ', target, ' found.')
return []
if __name__ == '__main__':
- sys.exit(main())
+ sys.exit(main())