b4: Drop shebang lines from library modules
PATCH 1/1 b4: Drop shebang lines from library modules
rpmlint reports non-executable-script errors on several Python modules. These files are installed as regular library modules with 0644 permissions, so the shebang line is unnecessary and triggers the diagnostic.
Remove the shebang from all modules.
Signed-off-by Maxime Ripard <[email protected]>
--- src/b4/_rewrite.py | 1 - src/b4/bugs/__init__.py | 1 - src/b4/bugs/_import.py | 1 - src/b4/bugs/_tui.py | 1 - src/b4/command.py | 1 - src/b4/diff.py | 1 - src/b4/dig.py | 1 - src/b4/ez.py | 1 - src/b4/kr.py | 1 - src/b4/mbox.py | 1 - src/b4/pr.py | 1 - src/b4/review/_review.py | 1 - src/b4/review/checks.py | 1 - src/b4/review/messages.py | 1 - src/b4/review/tracking.py | 1 - src/b4/review_tui/_common.py | 1 - src/b4/review_tui/_entry.py | 1 - src/b4/review_tui/_lite_app.py | 1 - src/b4/review_tui/_modals.py | 1 - src/b4/review_tui/_pw_app.py | 1 - src/b4/review_tui/_review_app.py | 1 - src/b4/review_tui/_tracking_app.py | 1 - src/b4/tui/_common.py | 1 - src/b4/tui/_modals.py | 1 - src/b4/ty.py | 1 - 25 files changed, 25 deletions(-)
src/b4/_rewrite.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2020 by the Linux Foundation # """Native history rewriting for b4, backed by pygit2.
src/b4/bugs/__init__.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2020 by the Linux Foundation """b4 bugs: manage bug reports from mailing list threads."""
src/b4/bugs/_import.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2020 by the Linux Foundation """Thread import engine: lore.kernel.org -> git-bug via ezgb."""
src/b4/bugs/_tui.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2020 by the Linux Foundation """Textual TUI for b4 bugs."""
src/b4/command.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # PYTHON_ARGCOMPLETE_OK # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2020 by the Linux Foundation #
src/b4/diff.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2020 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/dig.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2025 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/ez.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2020 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/kr.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2020-2021 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/mbox.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2020 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/pr.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2020 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/review/_review.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2024 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/review/checks.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2020 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/review/messages.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2024 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/review/tracking.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2024 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/review_tui/_common.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2024 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/review_tui/_entry.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2024 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/review_tui/_lite_app.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2024 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/review_tui/_modals.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2024 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/review_tui/_pw_app.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2024 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/review_tui/_review_app.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2024 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/review_tui/_tracking_app.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2024 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
src/b4/tui/_common.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2024 by the Linux Foundation # """Shared TUI utilities for b4 Textual apps."""
src/b4/tui/_modals.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2024 by the Linux Foundation # """Shared modal screens for b4 Textual apps."""
src/b4/ty.py +0 -1
@@ -1,6 +1,5 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2020 by the Linux Foundation # __author__ = 'Konstantin Ryabitsev <[email protected]>'
Signature · 1 line
2.55.0