From 64dc81454be57dffd6e78fd91120a63711930054 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Sun, 27 Nov 2011 22:28:21 +0000 Subject: 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 --- net/tools/testserver/asn1der.py | 1 - net/tools/testserver/chromiumsync.py | 1 - net/tools/testserver/chromiumsync_test.py | 2 +- net/tools/testserver/device_management.py | 1 - net/tools/testserver/echo_message.py | 1 - net/tools/testserver/xmppserver.py | 1 - net/tools/testserver/xmppserver_test.py | 2 +- 7 files changed, 2 insertions(+), 7 deletions(-) mode change 100644 => 100755 net/tools/testserver/xmppserver_test.py (limited to 'net/tools') 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 old mode 100644 new mode 100755 index ef3b809..b00885a --- 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. -- cgit v1.1