Blob Blame History Raw
From 22344f413ebee1184d702a220862e09a661495ee Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Fri, 7 Jan 2022 07:37:31 -0500
Subject: [PATCH] Remove useless shebang lines
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

These sources are not script-like (have no “if __name__ == '__main__'” or
similar) and do not have the executable bit set, so the shebang lines are
not useful.
---
 autoclasstoc/__init__.py | 2 --
 autoclasstoc/errors.py   | 2 --
 autoclasstoc/nodes.py    | 2 --
 autoclasstoc/plugin.py   | 2 --
 autoclasstoc/sections.py | 2 --
 autoclasstoc/utils.py    | 2 --
 docs/_ext/example.py     | 2 --
 docs/_ext/show_nodes.py  | 2 --
 tests/test_utils.py      | 2 --
 9 files changed, 18 deletions(-)

diff --git a/autoclasstoc/__init__.py b/autoclasstoc/__init__.py
index dcc00f3..a008d8e 100644
--- a/autoclasstoc/__init__.py
+++ b/autoclasstoc/__init__.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 """\
 Add a succinct TOC to auto-documented classes.
 """
diff --git a/autoclasstoc/errors.py b/autoclasstoc/errors.py
index cd40579..0a192ac 100644
--- a/autoclasstoc/errors.py
+++ b/autoclasstoc/errors.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 class AutoClassTocError(Exception):
     pass
 
diff --git a/autoclasstoc/nodes.py b/autoclasstoc/nodes.py
index d8e985e..078138d 100644
--- a/autoclasstoc/nodes.py
+++ b/autoclasstoc/nodes.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 """\
 The :mod:`autoclasstoc` module defines two new *docutils* nodes, which make it 
 possible to create collapsible content in HTML.
diff --git a/autoclasstoc/plugin.py b/autoclasstoc/plugin.py
index cb870fa..2ae954c 100644
--- a/autoclasstoc/plugin.py
+++ b/autoclasstoc/plugin.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 from sphinx.util.docutils import SphinxDirective
 from . import utils, __version__, ConfigError
 
diff --git a/autoclasstoc/sections.py b/autoclasstoc/sections.py
index bc8a5a4..464a518 100644
--- a/autoclasstoc/sections.py
+++ b/autoclasstoc/sections.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 import inspect
 from docutils import nodes as _nodes
 from . import utils
diff --git a/autoclasstoc/utils.py b/autoclasstoc/utils.py
index 871724e..2df339c 100644
--- a/autoclasstoc/utils.py
+++ b/autoclasstoc/utils.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 from docutils import nodes as _nodes
 from docutils.statemachine import StringList, string2lines
 from importlib import import_module
diff --git a/docs/_ext/example.py b/docs/_ext/example.py
index 93ac4b4..8368df7 100644
--- a/docs/_ext/example.py
+++ b/docs/_ext/example.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 from docutils import nodes
 from docutils.parsers.rst import Directive
 from sphinx.util.docutils import ReferenceRole
diff --git a/docs/_ext/show_nodes.py b/docs/_ext/show_nodes.py
index 687caa2..f46225f 100644
--- a/docs/_ext/show_nodes.py
+++ b/docs/_ext/show_nodes.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 from docutils import nodes
 from docutils.parsers.rst import Directive
 
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 353fd91..75038b0 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 import pytest
 import autoclasstoc