From 2f31098c394a4d6d54d9f137acc617eb31504e1e Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Wed, 10 Oct 2007 10:00:06 +0000
Subject: [PATCH] Remove the shebang from modules

Since modules are not directly executables, remove the shebang from
them. This helps with lintian warnings.

Also make the autogenerated _autoconf.py contain two comment lines at
the beginning, like the other modules.

Reviewed-by: ultrotter
---
 lib/Makefile.am   | 1 +
 lib/__init__.py   | 2 +-
 lib/backend.py    | 2 +-
 lib/bdev.py       | 2 +-
 lib/cli.py        | 2 +-
 lib/cmdlib.py     | 2 +-
 lib/config.py     | 2 +-
 lib/constants.py  | 2 +-
 lib/errors.py     | 2 +-
 lib/hypervisor.py | 2 +-
 lib/logger.py     | 2 +-
 lib/mcpu.py       | 2 +-
 lib/objects.py    | 2 +-
 lib/opcodes.py    | 2 +-
 lib/rpc.py        | 2 +-
 lib/ssconf.py     | 2 +-
 lib/ssh.py        | 2 +-
 lib/utils.py      | 2 +-
 test/mocks.py     | 2 +-
 19 files changed, 19 insertions(+), 18 deletions(-)

diff --git a/lib/Makefile.am b/lib/Makefile.am
index 1e353563d..0c249c6ea 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -12,6 +12,7 @@ all-local: _autoconf.py
 
 _autoconf.py: Makefile
 	{ echo '# This file is automatically generated, do not edit!'; \
+	  echo '#'; \
 	  echo "PACKAGE_VERSION = '$(PACKAGE_VERSION)'"; \
 	  echo "LOCALSTATEDIR = '$(localstatedir)'"; \
 	  echo "SYSCONFDIR = '$(sysconfdir)'"; \
diff --git a/lib/__init__.py b/lib/__init__.py
index d0292bb0a..bab68184b 100644
--- a/lib/__init__.py
+++ b/lib/__init__.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/lib/backend.py b/lib/backend.py
index 068f96456..295697db4 100644
--- a/lib/backend.py
+++ b/lib/backend.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/lib/bdev.py b/lib/bdev.py
index d62ce7c0c..94ce4548c 100644
--- a/lib/bdev.py
+++ b/lib/bdev.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/lib/cli.py b/lib/cli.py
index 5eaa3907f..9a6784d57 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index dff9f7355..55615459e 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/lib/config.py b/lib/config.py
index fe3ae5eb8..f4e1ab2a1 100644
--- a/lib/config.py
+++ b/lib/config.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/lib/constants.py b/lib/constants.py
index 6e63cf05a..dc06a037c 100644
--- a/lib/constants.py
+++ b/lib/constants.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/lib/errors.py b/lib/errors.py
index 44a812092..95125e969 100644
--- a/lib/errors.py
+++ b/lib/errors.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/lib/hypervisor.py b/lib/hypervisor.py
index 953eebf08..adf84aaef 100644
--- a/lib/hypervisor.py
+++ b/lib/hypervisor.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/lib/logger.py b/lib/logger.py
index 875ba3e23..8573ead0e 100644
--- a/lib/logger.py
+++ b/lib/logger.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/lib/mcpu.py b/lib/mcpu.py
index 1f46dbb49..4c49268e4 100644
--- a/lib/mcpu.py
+++ b/lib/mcpu.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/lib/objects.py b/lib/objects.py
index c3f0b46d4..d404d6b9f 100644
--- a/lib/objects.py
+++ b/lib/objects.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/lib/opcodes.py b/lib/opcodes.py
index 3544ed6fe..7beb299d6 100644
--- a/lib/opcodes.py
+++ b/lib/opcodes.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/lib/rpc.py b/lib/rpc.py
index b840e7219..0efb7e8d3 100644
--- a/lib/rpc.py
+++ b/lib/rpc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/lib/ssconf.py b/lib/ssconf.py
index de9cdbc20..a860203fa 100644
--- a/lib/ssconf.py
+++ b/lib/ssconf.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/lib/ssh.py b/lib/ssh.py
index 2f33d462a..d82319d32 100644
--- a/lib/ssh.py
+++ b/lib/ssh.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/lib/utils.py b/lib/utils.py
index be93d198f..14c9555c0 100644
--- a/lib/utils.py
+++ b/lib/utils.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
diff --git a/test/mocks.py b/test/mocks.py
index 4f569a68b..eca00d88e 100644
--- a/test/mocks.py
+++ b/test/mocks.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#
 #
 
 # Copyright (C) 2006, 2007 Google Inc.
-- 
GitLab