diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-27 20:56:51 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-27 20:56:51 +0000 |
commit | 2fac37585d3dfa0d7cf7a976698aae7627186573 (patch) | |
tree | d2f233a6afa5d8093f15f2f3c56cc4c009b05904 /chrome/app | |
parent | 071302929ab813f647e51253af4e885b33eab463 (diff) | |
download | chromium_src-2fac37585d3dfa0d7cf7a976698aae7627186573.zip chromium_src-2fac37585d3dfa0d7cf7a976698aae7627186573.tar.gz chromium_src-2fac37585d3dfa0d7cf7a976698aae7627186573.tar.bz2 |
Fix python scripts in src/chrome/
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.
Minor python style fixes.
TBR=nirnimesh@chromium.org
BUG=105108
TEST=
Review URL: http://codereview.chromium.org/8680018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111658 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rwxr-xr-x[-rw-r--r--] | chrome/app/policy/syntax_check_policy_template_json.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/app/policy/syntax_check_policy_template_json.py b/chrome/app/policy/syntax_check_policy_template_json.py index 8c597be..8ef76fe 100644..100755 --- a/chrome/app/policy/syntax_check_policy_template_json.py +++ b/chrome/app/policy/syntax_check_policy_template_json.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/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. @@ -413,5 +413,4 @@ class PolicyTemplateChecker(object): if __name__ == '__main__': - checker = PolicyTemplateChecker() - sys.exit(checker.Run(sys.argv)) + sys.exit(PolicyTemplateChecker().Run(sys.argv)) |