From 9ba8189d83db68d47cec774b29727423d931768c Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Thu, 5 Nov 2020 10:03:14 -0800 Subject: [PATCH] Remove shebangs from non-executable Python files (#140) Shebangs are only necessary for executable scripts. Removing them from all Python library files which are not intended to be executed. --- sonic_fan/fan_base.py | 1 - sonic_led/led_control_base.py | 1 - sonic_platform_base/sonic_eeprom/eeprom_base.py | 1 - sonic_platform_base/sonic_eeprom/eeprom_dts.py | 1 - sonic_platform_base/sonic_eeprom/eeprom_tlvinfo.py | 1 - sonic_platform_base/sonic_pcie/pcie_base.py | 1 - sonic_platform_base/sonic_sfp/bcmshell.py | 1 - sonic_platform_base/sonic_sfp/inf8628.py | 1 - sonic_platform_base/sonic_sfp/qsfp_dd.py | 1 - sonic_platform_base/sonic_sfp/sff8024.py | 1 - sonic_platform_base/sonic_sfp/sff8436.py | 1 - sonic_platform_base/sonic_sfp/sff8472.py | 1 - sonic_platform_base/sonic_sfp/sffbase.py | 1 - sonic_psu/psu_base.py | 1 - sonic_thermal/thermal_base.py | 1 - sonic_y_cable/y_cable.py | 1 - 16 files changed, 16 deletions(-) diff --git a/sonic_fan/fan_base.py b/sonic_fan/fan_base.py index 20f3b8e025e1..9c3a0adc6d8a 100644 --- a/sonic_fan/fan_base.py +++ b/sonic_fan/fan_base.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # fan_base.py # diff --git a/sonic_led/led_control_base.py b/sonic_led/led_control_base.py index d9fb3b8195bd..9505f2a4a9f8 100644 --- a/sonic_led/led_control_base.py +++ b/sonic_led/led_control_base.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # led_control_base.py # diff --git a/sonic_platform_base/sonic_eeprom/eeprom_base.py b/sonic_platform_base/sonic_eeprom/eeprom_base.py index aa8fafe743d2..d50526707247 100644 --- a/sonic_platform_base/sonic_eeprom/eeprom_base.py +++ b/sonic_platform_base/sonic_eeprom/eeprom_base.py @@ -1,4 +1,3 @@ -#! /usr/bin/python # Copyright 2012 Cumulus Networks LLC, all rights reserved ############################################################################# diff --git a/sonic_platform_base/sonic_eeprom/eeprom_dts.py b/sonic_platform_base/sonic_eeprom/eeprom_dts.py index df077d2c8642..a47d2f609385 100644 --- a/sonic_platform_base/sonic_eeprom/eeprom_dts.py +++ b/sonic_platform_base/sonic_eeprom/eeprom_dts.py @@ -1,4 +1,3 @@ -#!/usr/bin/python # Copyright 2012 Cumulus Networks LLC, all rights reserved try: diff --git a/sonic_platform_base/sonic_eeprom/eeprom_tlvinfo.py b/sonic_platform_base/sonic_eeprom/eeprom_tlvinfo.py index c2febce2756e..d01a37211cb5 100644 --- a/sonic_platform_base/sonic_eeprom/eeprom_tlvinfo.py +++ b/sonic_platform_base/sonic_eeprom/eeprom_tlvinfo.py @@ -1,4 +1,3 @@ -#! /usr/bin/python # Copyright 2012 Cumulus Networks LLC, all rights reserved ############################################################################# diff --git a/sonic_platform_base/sonic_pcie/pcie_base.py b/sonic_platform_base/sonic_pcie/pcie_base.py index ceb9ee4ba38c..17055aa3259c 100755 --- a/sonic_platform_base/sonic_pcie/pcie_base.py +++ b/sonic_platform_base/sonic_pcie/pcie_base.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # pcie_base.py # diff --git a/sonic_platform_base/sonic_sfp/bcmshell.py b/sonic_platform_base/sonic_sfp/bcmshell.py index 409e61071e7e..821e48d11a4e 100644 --- a/sonic_platform_base/sonic_sfp/bcmshell.py +++ b/sonic_platform_base/sonic_sfp/bcmshell.py @@ -1,4 +1,3 @@ -#! /usr/bin/python #------------------------------------------------------------------------------- # # Copyright 2012 Cumulus Networks, inc all rights reserved diff --git a/sonic_platform_base/sonic_sfp/inf8628.py b/sonic_platform_base/sonic_sfp/inf8628.py index 2d16c983457e..7c925edf3694 100644 --- a/sonic_platform_base/sonic_sfp/inf8628.py +++ b/sonic_platform_base/sonic_sfp/inf8628.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python #---------------------------------------------------------------------------- # QSFP-DD 8X Transceiver (QSFP Double Density) #---------------------------------------------------------------------------- diff --git a/sonic_platform_base/sonic_sfp/qsfp_dd.py b/sonic_platform_base/sonic_sfp/qsfp_dd.py index 33c9737b0613..1ef13bf509b3 100644 --- a/sonic_platform_base/sonic_sfp/qsfp_dd.py +++ b/sonic_platform_base/sonic_sfp/qsfp_dd.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python #---------------------------------------------------------------------------- # QSFP-DD 8X Transceiver (QSFP Double Density) #---------------------------------------------------------------------------- diff --git a/sonic_platform_base/sonic_sfp/sff8024.py b/sonic_platform_base/sonic_sfp/sff8024.py index e123630b1a31..19f81a31fff7 100644 --- a/sonic_platform_base/sonic_sfp/sff8024.py +++ b/sonic_platform_base/sonic_sfp/sff8024.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python #---------------------------------------------------------------------------- # SFF-8024 Rev 4.5 #---------------------------------------------------------------------------- diff --git a/sonic_platform_base/sonic_sfp/sff8436.py b/sonic_platform_base/sonic_sfp/sff8436.py index 0b88dafa62db..79dfca182ba2 100644 --- a/sonic_platform_base/sonic_sfp/sff8436.py +++ b/sonic_platform_base/sonic_sfp/sff8436.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python #---------------------------------------------------------------------------- # SFF-8436 QSFP+ 10 Gbs 4X PLUGGABLE TRANSCEIVER #---------------------------------------------------------------------------- diff --git a/sonic_platform_base/sonic_sfp/sff8472.py b/sonic_platform_base/sonic_sfp/sff8472.py index 55ffb29f827b..1b84685f39bd 100644 --- a/sonic_platform_base/sonic_sfp/sff8472.py +++ b/sonic_platform_base/sonic_sfp/sff8472.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python #-------------------------------------------------------------------------- # # Copyright 2012 Cumulus Networks, inc all rights reserved diff --git a/sonic_platform_base/sonic_sfp/sffbase.py b/sonic_platform_base/sonic_sfp/sffbase.py index 79fa1a7c475b..7bbdebb2801f 100644 --- a/sonic_platform_base/sonic_sfp/sffbase.py +++ b/sonic_platform_base/sonic_sfp/sffbase.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python #---------------------------------------------------------------------------- # sffbase class for sff8436 and sff8472 #---------------------------------------------------------------------------- diff --git a/sonic_psu/psu_base.py b/sonic_psu/psu_base.py index 42a65d251b6d..4ac699944cd6 100644 --- a/sonic_psu/psu_base.py +++ b/sonic_psu/psu_base.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # psu_base.py # diff --git a/sonic_thermal/thermal_base.py b/sonic_thermal/thermal_base.py index c3867efbad38..c2fd863912c8 100644 --- a/sonic_thermal/thermal_base.py +++ b/sonic_thermal/thermal_base.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # thermal_base.py # diff --git a/sonic_y_cable/y_cable.py b/sonic_y_cable/y_cable.py index c9840348c419..90e497f6b5fa 100644 --- a/sonic_y_cable/y_cable.py +++ b/sonic_y_cable/y_cable.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # y_cable.py #