Skip to content

Commit

Permalink
Fix or remove shebangs where necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
jleveque committed Nov 12, 2020
1 parent f81019c commit bc0d19f
Show file tree
Hide file tree
Showing 30 changed files with 32 additions and 45 deletions.
2 changes: 0 additions & 2 deletions clear/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#! /usr/bin/python -u

import click
import os
import subprocess
Expand Down
3 changes: 0 additions & 3 deletions config/kube.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/usr/bin/python -u
# -*- coding: utf-8 -*-

import fcntl
import os
import shutil
Expand Down
2 changes: 0 additions & 2 deletions connect/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#! /usr/bin/python -u

import click
import os
import pexpect
Expand Down
2 changes: 0 additions & 2 deletions counterpoll/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#! /usr/bin/python -u

import click
import json
import swsssdk
Expand Down
3 changes: 0 additions & 3 deletions debug/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#! /usr/bin/python -u
# date: 07/12/17

import click
import subprocess

Expand Down
2 changes: 0 additions & 2 deletions pfcwd/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#! /usr/bin/python -u

import os
import sys

Expand Down
3 changes: 2 additions & 1 deletion scripts/aclshow
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
using aclshow to display SONiC switch acl rules and counters
Expand Down
2 changes: 1 addition & 1 deletion scripts/dump_nat_entries.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

""""
Description: dump_nat_entries.py -- dump conntrack nat entries from kernel into a file
Expand Down
3 changes: 2 additions & 1 deletion scripts/ecnconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
ecnconfig is the utility to
Expand Down
3 changes: 2 additions & 1 deletion scripts/fanshow
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
Script to show fan status.
"""
Expand Down
3 changes: 2 additions & 1 deletion scripts/fdbclear
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
Script to clear MAC/FDB entries learnt in Hardware
Expand Down
3 changes: 2 additions & 1 deletion scripts/fdbshow
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
Script to show MAC/FDB entries learnt in Hardware
Expand Down
2 changes: 1 addition & 1 deletion scripts/gearboxutil
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/python
#!/usr/bin/env python

import swsssdk
import sys
Expand Down
2 changes: 1 addition & 1 deletion scripts/intfutil
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/python
#!/usr/bin/env python

import argparse
import os
Expand Down
3 changes: 2 additions & 1 deletion scripts/mmuconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
mmuconfig is the utility to show and change mmu configuration
Expand Down
3 changes: 2 additions & 1 deletion scripts/natclear
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
Script to clear nat dynamic entries from Hardware and also to clear the nat statistics
Expand Down
2 changes: 1 addition & 1 deletion scripts/natconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
Script to show nat configuration
Expand Down
2 changes: 1 addition & 1 deletion scripts/natshow
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
Script to show nat entries and nat statistics in a summary view
Expand Down
3 changes: 2 additions & 1 deletion scripts/nbrshow
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
Script to show Ipv4/Ipv6 neighbor entries
Expand Down
3 changes: 2 additions & 1 deletion scripts/portconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
portconfig is the utility to show and change ECN configuration
Expand Down
2 changes: 1 addition & 1 deletion scripts/psushow
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/python
#!/usr/bin/env python

import argparse
import sys
Expand Down
3 changes: 2 additions & 1 deletion scripts/sfpshow
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
Script to show sfp eeprom and presence status.
Not like sfputil this scripts get the sfp data from DB directly.
Expand Down
3 changes: 2 additions & 1 deletion scripts/sonic-kdump-config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python

'''
Copyright 2019 Broadcom. The term "Broadcom" refers to Broadcom Inc.
and/or its subsidiaries.
Expand Down
3 changes: 2 additions & 1 deletion scripts/sonic_sku_create.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
usage: sonic_sku_create.py [-h] [-v] [-f FILE] [-m [MINIGRAPH_FILE]] [-b BASE]
[-r] [-k HWSKU]
Expand Down
3 changes: 2 additions & 1 deletion scripts/tempershow
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
Script to show fan status.
"""
Expand Down
3 changes: 0 additions & 3 deletions show/kube.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/usr/bin/python -u
# -*- coding: utf-8 -*-

import os

import click
Expand Down
2 changes: 0 additions & 2 deletions show/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#! /usr/bin/python -u

import json
import netaddr
import os
Expand Down
2 changes: 0 additions & 2 deletions sonic_installer/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#! /usr/bin/python -u

try:
import ConfigParser as configparser
except ImportError:
Expand Down
2 changes: 0 additions & 2 deletions tests/system_health_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#! /usr/bin/python -u

import sys
import os

Expand Down
3 changes: 0 additions & 3 deletions undebug/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#! /usr/bin/python -u
# date: 07/12/17

import click
import subprocess

Expand Down

0 comments on commit bc0d19f

Please sign in to comment.