diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-23 22:22:20 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-23 22:22:20 +0000 |
commit | aa539ba4c9dc3e99a4e55f21a10fb79b9402637c (patch) | |
tree | 9cc8977263c4a73e65c7a52f96447bff83531265 /testing | |
parent | e51bdf3d4f7bb89497344af0b4a99ff10512c0d5 (diff) | |
download | chromium_src-aa539ba4c9dc3e99a4e55f21a10fb79b9402637c.zip chromium_src-aa539ba4c9dc3e99a4e55f21a10fb79b9402637c.tar.gz chromium_src-aa539ba4c9dc3e99a4e55f21a10fb79b9402637c.tar.bz2 |
Fix many* python scripts in src/
Make sure that:
- shebang is only present for executable files
- shebang is #!/usr/bin/env python
- __main__ is only present for executable files
- file's executable bit is coherent
Also fix EOF LF to be only one.
* Do not fix them all at once otherwise the CL would be too large.
TBR=jamiewalch@chromium.org
BUG=105108
TEST=
Review URL: http://codereview.chromium.org/8665013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111427 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'testing')
-rwxr-xr-x[-rw-r--r--] | testing/generate_gmock_mutant.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/testing/generate_gmock_mutant.py b/testing/generate_gmock_mutant.py index 83fbb48..fb977d4 100644..100755 --- a/testing/generate_gmock_mutant.py +++ b/testing/generate_gmock_mutant.py @@ -1,9 +1,10 @@ -#!/usr/bin/python -# Copyright (c) 2009 The Chromium Authors. All rights reserved. +#!/usr/bin/env python +# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import string +import sys HEADER = """\ // Copyright (c) 2009 The Chromium Authors. All rights reserved. @@ -447,6 +448,8 @@ def main(): for args in xrange(0, 6 + 1): GenerateCreateFunctor(prebound, args) print FOOTER + return 0 + if __name__ == "__main__": - main() + sys.exit(main()) |