diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-27 22:28:21 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-27 22:28:21 +0000 |
commit | 64dc81454be57dffd6e78fd91120a63711930054 (patch) | |
tree | 1de36b85e644ffe09a665e24f8407c83fdb46217 /net | |
parent | e14f34beb6e5981e091a778118cfa0d1da48a088 (diff) | |
download | chromium_src-64dc81454be57dffd6e78fd91120a63711930054.zip chromium_src-64dc81454be57dffd6e78fd91120a63711930054.tar.gz chromium_src-64dc81454be57dffd6e78fd91120a63711930054.tar.bz2 |
Fix python scripts in src/net
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.
TBR=akalin@chromium.org
BUG=105108
TEST=
Review URL: http://codereview.chromium.org/8669012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111662 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/PRESUBMIT.py | 1 | ||||
-rw-r--r-- | net/tools/testserver/asn1der.py | 1 | ||||
-rwxr-xr-x | net/tools/testserver/chromiumsync.py | 1 | ||||
-rwxr-xr-x | net/tools/testserver/chromiumsync_test.py | 2 | ||||
-rw-r--r-- | net/tools/testserver/device_management.py | 1 | ||||
-rw-r--r-- | net/tools/testserver/echo_message.py | 1 | ||||
-rw-r--r-- | net/tools/testserver/xmppserver.py | 1 | ||||
-rwxr-xr-x[-rw-r--r--] | net/tools/testserver/xmppserver_test.py | 2 |
8 files changed, 2 insertions, 8 deletions
diff --git a/net/PRESUBMIT.py b/net/PRESUBMIT.py index 5b607c5..b81f2f5 100644 --- a/net/PRESUBMIT.py +++ b/net/PRESUBMIT.py @@ -1,4 +1,3 @@ -#!/usr/bin/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. diff --git a/net/tools/testserver/asn1der.py b/net/tools/testserver/asn1der.py index 7e57ccf..9e70893 100644 --- a/net/tools/testserver/asn1der.py +++ b/net/tools/testserver/asn1der.py @@ -1,4 +1,3 @@ -#!/usr/bin/python2.5 # 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. diff --git a/net/tools/testserver/chromiumsync.py b/net/tools/testserver/chromiumsync.py index 338ecb0..cabbb7d 100755 --- a/net/tools/testserver/chromiumsync.py +++ b/net/tools/testserver/chromiumsync.py @@ -1,4 +1,3 @@ -#!/usr/bin/python2.4 # 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. diff --git a/net/tools/testserver/chromiumsync_test.py b/net/tools/testserver/chromiumsync_test.py index 97e5f38..d704ac3 100755 --- a/net/tools/testserver/chromiumsync_test.py +++ b/net/tools/testserver/chromiumsync_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/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. diff --git a/net/tools/testserver/device_management.py b/net/tools/testserver/device_management.py index a6197ff..bbcc4f0 100644 --- a/net/tools/testserver/device_management.py +++ b/net/tools/testserver/device_management.py @@ -1,4 +1,3 @@ -#!/usr/bin/python2.5 # 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. diff --git a/net/tools/testserver/echo_message.py b/net/tools/testserver/echo_message.py index bf400d9..b2f7b04 100644 --- a/net/tools/testserver/echo_message.py +++ b/net/tools/testserver/echo_message.py @@ -1,4 +1,3 @@ -#!/usr/bin/python2.4 # 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. diff --git a/net/tools/testserver/xmppserver.py b/net/tools/testserver/xmppserver.py index ea8c711..6952a99 100644 --- a/net/tools/testserver/xmppserver.py +++ b/net/tools/testserver/xmppserver.py @@ -1,4 +1,3 @@ -#!/usr/bin/python2.4 # 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. diff --git a/net/tools/testserver/xmppserver_test.py b/net/tools/testserver/xmppserver_test.py index ef3b809..b00885a 100644..100755 --- a/net/tools/testserver/xmppserver_test.py +++ b/net/tools/testserver/xmppserver_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2.4 +#!/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. |