From 23135f2ca5e2fbe87656797d9e1318862538fa4b Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Sun, 5 Apr 2020 16:36:06 +0200 Subject: [PATCH] Fix shebang and executable flag for all scripts --- remotinator | 3 ++- terminator | 3 ++- terminatorlib/__init__.py | 5 ++--- terminatorlib/borg.py | 1 - terminatorlib/config.py | 5 ++--- terminatorlib/container.py | 1 - terminatorlib/cwd.py | 1 - terminatorlib/debugserver.py | 2 -- terminatorlib/editablelabel.py | 1 - terminatorlib/encoding.py | 5 ++--- terminatorlib/factory.py | 1 - terminatorlib/freebsd.py | 2 +- terminatorlib/ipc.py | 1 - terminatorlib/keybindings.py | 5 ++--- terminatorlib/layoutlauncher.py | 2 +- terminatorlib/notebook.py | 1 - terminatorlib/optionparse.py | 5 ++--- terminatorlib/paned.py | 1 - terminatorlib/plugin.py | 1 - terminatorlib/plugins/activitywatch.py | 1 - terminatorlib/plugins/custom_commands.py | 1 - terminatorlib/plugins/logger.py | 2 -- terminatorlib/plugins/maven.py | 2 +- terminatorlib/plugins/terminalshot.py | 1 - terminatorlib/plugins/testplugin.py | 1 - terminatorlib/plugins/url_handlers.py | 1 - terminatorlib/prefseditor.py | 2 +- terminatorlib/pylint.sh | 0 terminatorlib/searchbar.py | 1 - terminatorlib/signalman.py | 1 - terminatorlib/terminal.py | 1 - terminatorlib/terminal_popup_menu.py | 1 - terminatorlib/terminator.py | 1 - terminatorlib/titlebar.py | 1 - terminatorlib/translation.py | 5 ++--- terminatorlib/util.py | 5 ++--- terminatorlib/version.py | 5 ++--- terminatorlib/window.py | 1 - tests/test_doctests.py | 2 +- tests/testborg.py | 3 ++- tests/testsignalman.py | 2 +- 41 files changed, 28 insertions(+), 58 deletions(-) mode change 100755 => 100644 terminatorlib/borg.py mode change 100755 => 100644 terminatorlib/config.py mode change 100755 => 100644 terminatorlib/container.py mode change 100755 => 100644 terminatorlib/cwd.py mode change 100755 => 100644 terminatorlib/factory.py mode change 100644 => 100755 terminatorlib/freebsd.py mode change 100755 => 100644 terminatorlib/notebook.py mode change 100755 => 100644 terminatorlib/optionparse.py mode change 100755 => 100644 terminatorlib/paned.py mode change 100755 => 100644 terminatorlib/plugin.py mode change 100755 => 100644 terminatorlib/plugins/activitywatch.py mode change 100755 => 100644 terminatorlib/plugins/custom_commands.py mode change 100755 => 100644 terminatorlib/plugins/maven.py mode change 100755 => 100644 terminatorlib/plugins/terminalshot.py mode change 100755 => 100644 terminatorlib/pylint.sh mode change 100755 => 100644 terminatorlib/searchbar.py mode change 100755 => 100644 terminatorlib/signalman.py mode change 100755 => 100644 terminatorlib/terminal.py mode change 100755 => 100644 terminatorlib/terminal_popup_menu.py mode change 100755 => 100644 terminatorlib/terminator.py mode change 100755 => 100644 terminatorlib/titlebar.py mode change 100755 => 100644 terminatorlib/util.py mode change 100755 => 100644 terminatorlib/window.py diff --git a/remotinator b/remotinator index 60f779ac..46054edb 100755 --- a/remotinator +++ b/remotinator @@ -1,4 +1,5 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python +# # remotinator - send commands to Terminator via DBus # Copyright (C) 2006-2010 cmsj@tenshu.net # diff --git a/terminator b/terminator index 539e7600..7454df55 100755 --- a/terminator +++ b/terminator @@ -1,4 +1,5 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python +# # Terminator - multiple gnome terminals in one window # Copyright (C) 2006-2010 cmsj@tenshu.net # diff --git a/terminatorlib/__init__.py b/terminatorlib/__init__.py index af78cae8..32de9aee 100644 --- a/terminatorlib/__init__.py +++ b/terminatorlib/__init__.py @@ -1,6 +1,5 @@ -#!/usr/bin/env python2 -# Terminator - multiple gnome terminals in one window -# Copyright (C) 2006-2010 cmsj@tenshu.net +# Terminator - multiple gnome terminals in one window +# Copyright (C) 2006-2010 cmsj@tenshu.net # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/terminatorlib/borg.py b/terminatorlib/borg.py old mode 100755 new mode 100644 index 314d4773..6082c4d5 --- a/terminatorlib/borg.py +++ b/terminatorlib/borg.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """borg.py - We are the borg. Resistance is futile. diff --git a/terminatorlib/config.py b/terminatorlib/config.py old mode 100755 new mode 100644 index 47d670d8..5e36a2e2 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -1,6 +1,5 @@ -#!/usr/bin/env python2 -# TerminatorConfig - layered config classes -# Copyright (C) 2006-2010 cmsj@tenshu.net +# TerminatorConfig - layered config classes +# Copyright (C) 2006-2010 cmsj@tenshu.net # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/terminatorlib/container.py b/terminatorlib/container.py old mode 100755 new mode 100644 index dfbf2d89..2afbe913 --- a/terminatorlib/container.py +++ b/terminatorlib/container.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """container.py - classes necessary to contain Terminal widgets""" diff --git a/terminatorlib/cwd.py b/terminatorlib/cwd.py old mode 100755 new mode 100644 index f96658ab..f8fcb175 --- a/terminatorlib/cwd.py +++ b/terminatorlib/cwd.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """cwd.py - function necessary to get the cwd for a given pid on various OSes diff --git a/terminatorlib/debugserver.py b/terminatorlib/debugserver.py index 1fa18dfa..b0c4b2ec 100644 --- a/terminatorlib/debugserver.py +++ b/terminatorlib/debugserver.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python2 -# # Copyright (c) 2008, Thomas Hurst # # Use of this file is unrestricted provided this notice is retained. diff --git a/terminatorlib/editablelabel.py b/terminatorlib/editablelabel.py index 6a391671..edec7e21 100644 --- a/terminatorlib/editablelabel.py +++ b/terminatorlib/editablelabel.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # vim: tabstop=4 softtabstop=4 shiftwidth=4 expandtab # # Copyright (c) 2009, Emmanuel Bretelle diff --git a/terminatorlib/encoding.py b/terminatorlib/encoding.py index 4a962ea0..1368d973 100644 --- a/terminatorlib/encoding.py +++ b/terminatorlib/encoding.py @@ -1,6 +1,5 @@ -#!/usr/bin/env python2 -# TerminatorEncoding - charset encoding classes -# Copyright (C) 2006-2010 chantra@debuntu.org +# TerminatorEncoding - charset encoding classes +# Copyright (C) 2006-2010 chantra@debuntu.org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/terminatorlib/factory.py b/terminatorlib/factory.py old mode 100755 new mode 100644 index 246bf05a..196cfea7 --- a/terminatorlib/factory.py +++ b/terminatorlib/factory.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """factory.py - Maker of objects diff --git a/terminatorlib/freebsd.py b/terminatorlib/freebsd.py old mode 100644 new mode 100755 index 71e02768..67badf34 --- a/terminatorlib/freebsd.py +++ b/terminatorlib/freebsd.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # # Copyright (c) 2008, Thomas Hurst # diff --git a/terminatorlib/ipc.py b/terminatorlib/ipc.py index fa1d2a96..b824ae27 100644 --- a/terminatorlib/ipc.py +++ b/terminatorlib/ipc.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """ipc.py - DBus server and API calls""" diff --git a/terminatorlib/keybindings.py b/terminatorlib/keybindings.py index e592bb3a..3ea2e69c 100644 --- a/terminatorlib/keybindings.py +++ b/terminatorlib/keybindings.py @@ -1,6 +1,5 @@ -#!/usr/bin/env python2 -# Terminator - multiple gnome terminals in one window -# Copyright (C) 2006-2010 cmsj@tenshu.net +# Terminator - multiple gnome terminals in one window +# Copyright (C) 2006-2010 cmsj@tenshu.net # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/terminatorlib/layoutlauncher.py b/terminatorlib/layoutlauncher.py index 6045b041..f1c65fda 100755 --- a/terminatorlib/layoutlauncher.py +++ b/terminatorlib/layoutlauncher.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # Terminator by Chris Jones # GPL v2 only """layoutlauncher.py - class for the Layout Launcher window""" diff --git a/terminatorlib/notebook.py b/terminatorlib/notebook.py old mode 100755 new mode 100644 index 6f32cd3b..55266e28 --- a/terminatorlib/notebook.py +++ b/terminatorlib/notebook.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """notebook.py - classes for the notebook widget""" diff --git a/terminatorlib/optionparse.py b/terminatorlib/optionparse.py old mode 100755 new mode 100644 index 3e96415d..2a4f64f7 --- a/terminatorlib/optionparse.py +++ b/terminatorlib/optionparse.py @@ -1,6 +1,5 @@ -#!/usr/bin/env python2 -# Terminator.optionparse - Parse commandline options -# Copyright (C) 2006-2010 cmsj@tenshu.net +# Terminator.optionparse - Parse commandline options +# Copyright (C) 2006-2010 cmsj@tenshu.net # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/terminatorlib/paned.py b/terminatorlib/paned.py old mode 100755 new mode 100644 index fe6a8d9c..373d9e53 --- a/terminatorlib/paned.py +++ b/terminatorlib/paned.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """paned.py - a base Paned container class and the vertical/horizontal diff --git a/terminatorlib/plugin.py b/terminatorlib/plugin.py old mode 100755 new mode 100644 index c7ec84c3..fb4c386d --- a/terminatorlib/plugin.py +++ b/terminatorlib/plugin.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """plugin.py - Base plugin system diff --git a/terminatorlib/plugins/activitywatch.py b/terminatorlib/plugins/activitywatch.py old mode 100755 new mode 100644 index 61028ad4..d5d7362d --- a/terminatorlib/plugins/activitywatch.py +++ b/terminatorlib/plugins/activitywatch.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """activitywatch.py - Terminator Plugin to watch a terminal for activity""" diff --git a/terminatorlib/plugins/custom_commands.py b/terminatorlib/plugins/custom_commands.py old mode 100755 new mode 100644 index f8948a26..f2ddfdf0 --- a/terminatorlib/plugins/custom_commands.py +++ b/terminatorlib/plugins/custom_commands.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """custom_commands.py - Terminator Plugin to add custom command menu entries""" diff --git a/terminatorlib/plugins/logger.py b/terminatorlib/plugins/logger.py index ce5ac27a..a9850e8e 100644 --- a/terminatorlib/plugins/logger.py +++ b/terminatorlib/plugins/logger.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python2 - # Plugin by Sinan Nalkaya # See LICENSE of Terminator package. diff --git a/terminatorlib/plugins/maven.py b/terminatorlib/plugins/maven.py old mode 100755 new mode 100644 index 134f61fa..bcc21d79 --- a/terminatorlib/plugins/maven.py +++ b/terminatorlib/plugins/maven.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Copyright (c) 2010 Julien Nicoulaud # # This program is free software; you can redistribute it and/or modify @@ -14,6 +13,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor # , Boston, MA 02110-1301 USA + import re import terminatorlib.plugin as plugin diff --git a/terminatorlib/plugins/terminalshot.py b/terminatorlib/plugins/terminalshot.py old mode 100755 new mode 100644 index 86fa7795..03b45000 --- a/terminatorlib/plugins/terminalshot.py +++ b/terminatorlib/plugins/terminalshot.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """terminalshot.py - Terminator Plugin to take 'screenshots' of individual diff --git a/terminatorlib/plugins/testplugin.py b/terminatorlib/plugins/testplugin.py index 660313ac..e18ed60c 100644 --- a/terminatorlib/plugins/testplugin.py +++ b/terminatorlib/plugins/testplugin.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 import terminatorlib.plugin as plugin # AVAILABLE must contain a list of all the classes that you want exposed diff --git a/terminatorlib/plugins/url_handlers.py b/terminatorlib/plugins/url_handlers.py index e9f3320b..436406e0 100644 --- a/terminatorlib/plugins/url_handlers.py +++ b/terminatorlib/plugins/url_handlers.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """searchbar.py - classes necessary to provide a terminal search bar""" diff --git a/terminatorlib/signalman.py b/terminatorlib/signalman.py old mode 100755 new mode 100644 index 901a8808..5f9af0d5 --- a/terminatorlib/signalman.py +++ b/terminatorlib/signalman.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """Simple management of Gtk Widget signal handlers""" diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py old mode 100755 new mode 100644 index b17358ea..6b0002da --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """terminal.py - classes necessary to provide Terminal widgets""" diff --git a/terminatorlib/terminal_popup_menu.py b/terminatorlib/terminal_popup_menu.py old mode 100755 new mode 100644 index b5216be9..d0986ad3 --- a/terminatorlib/terminal_popup_menu.py +++ b/terminatorlib/terminal_popup_menu.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """terminal_popup_menu.py - classes necessary to provide a terminal context diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py old mode 100755 new mode 100644 index b226f449..8e8e28d0 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """terminator.py - class for the master Terminator singleton""" diff --git a/terminatorlib/titlebar.py b/terminatorlib/titlebar.py old mode 100755 new mode 100644 index 6365fa45..d6cd557a --- a/terminatorlib/titlebar.py +++ b/terminatorlib/titlebar.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """titlebar.py - classes necessary to provide a terminal title bar""" diff --git a/terminatorlib/translation.py b/terminatorlib/translation.py index 8393a8ab..9d6e3b0e 100644 --- a/terminatorlib/translation.py +++ b/terminatorlib/translation.py @@ -1,6 +1,5 @@ -#!/usr/bin/env python2 -# Terminator - multiple gnome terminals in one window -# Copyright (C) 2006-2010 cmsj@tenshu.net +# Terminator - multiple gnome terminals in one window +# Copyright (C) 2006-2010 cmsj@tenshu.net # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/terminatorlib/util.py b/terminatorlib/util.py old mode 100755 new mode 100644 index 7f5c9877..75e78ac4 --- a/terminatorlib/util.py +++ b/terminatorlib/util.py @@ -1,6 +1,5 @@ -#!/usr/bin/env python2 -# Terminator.util - misc utility functions -# Copyright (C) 2006-2010 cmsj@tenshu.net +# Terminator.util - misc utility functions +# Copyright (C) 2006-2010 cmsj@tenshu.net # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/terminatorlib/version.py b/terminatorlib/version.py index 0c19d6ca..0cad9a59 100644 --- a/terminatorlib/version.py +++ b/terminatorlib/version.py @@ -1,6 +1,5 @@ -#!/usr/bin/env python2 -# TerminatorVersion - version number -# Copyright (C) 2010 cmsj@tenshu.net +# TerminatorVersion - version number +# Copyright (C) 2010 cmsj@tenshu.net # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/terminatorlib/window.py b/terminatorlib/window.py old mode 100755 new mode 100644 index 16f2c159..117b1667 --- a/terminatorlib/window.py +++ b/terminatorlib/window.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # Terminator by Chris Jones # GPL v2 only """window.py - class for the main Terminator window""" diff --git a/tests/test_doctests.py b/tests/test_doctests.py index 1948bf5a..55f586d1 100644 --- a/tests/test_doctests.py +++ b/tests/test_doctests.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python """Load up the tests.""" import os diff --git a/tests/testborg.py b/tests/testborg.py index 4d77172d..032872f8 100755 --- a/tests/testborg.py +++ b/tests/testborg.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # Terminator by Chris Jones # GPL v2 only """testborg.py - We are the borg. Resistance is futile. @@ -57,3 +57,4 @@ class TestBorg2(Borg): if not self.attribute: self.attribute = 1 +# TODO: implement test? diff --git a/tests/testsignalman.py b/tests/testsignalman.py index 6129896f..5c0806e7 100755 --- a/tests/testsignalman.py +++ b/tests/testsignalman.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # Terminator by Chris Jones # GPL v2 only """testsignalman.py - Test the signalman class