From e7bfd1d71ca54df726a4f1ea14bd6b0957b75752 Mon Sep 17 00:00:00 2001 From: Benjamin Nied Date: Sat, 5 Jan 2019 10:11:19 -0800 Subject: [PATCH] Remove shebangs from py scripts Starting with Fedora 30 and RHEL 8, ambiguous python shebangs will now throw errors during the RPM build process instead of just warnings, since these systems have moved to Python 3 by default, and Python 2 may not be available in the future. See [this page](https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error) for more details. Drop these shebangs as the scripts are only ever called from fish wrappers. --- share/tools/create_manpage_completions.py | 1 - share/tools/deroff.py | 1 - share/tools/web_config/webconfig.py | 2 -- 3 files changed, 4 deletions(-) diff --git a/share/tools/create_manpage_completions.py b/share/tools/create_manpage_completions.py index f0326537e..bbee8d102 100755 --- a/share/tools/create_manpage_completions.py +++ b/share/tools/create_manpage_completions.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- # Run me like this: ./create_manpage_completions.py /usr/share/man/man{1,8}/* > man_completions.fish diff --git a/share/tools/deroff.py b/share/tools/deroff.py index 4ef4fb690..ac3d89650 100755 --- a/share/tools/deroff.py +++ b/share/tools/deroff.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- """ Deroff.py, ported to Python from the venerable deroff.c """ diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index 58702f2fa..8fb945d7b 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - from __future__ import unicode_literals from __future__ import print_function import binascii