Skip to content

Commit

Permalink
fix LGTM Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lkunjumon committed Feb 3, 2021
1 parent c130f1b commit 30ba574
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions device/delta/arm64-delta_tg48m_poe-r0/plugins/led_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
#
try:
from sonic_led.led_control_base import LedControlBase
import swsssdk
import threading
import os
import logging
import struct
import time
from socket import *
from select import *
Expand Down
2 changes: 0 additions & 2 deletions device/delta/arm64-delta_tg48m_poe-r0/plugins/psuutil.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python

import sys
import os.path
if sys.version_info[0] < 3:
import commands as cmd
else:
Expand All @@ -23,7 +22,6 @@ class PsuUtil(PsuBase):

def __init__(self):
PsuBase.__init__(self)
MAX_PSUS = 2

def get_num_psus(self):
MAX_PSUS = 2
Expand Down
4 changes: 0 additions & 4 deletions device/delta/arm64-delta_tg48m_poe-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ def get_presence(self, port_num):
return False
prt = port_num % 49
sel = "{0:02b}".format(prt)
p = sel[0]
q = sel[1]

pos = [1,2,4,8]
bit_pos = pos[prt]
Expand Down Expand Up @@ -232,7 +230,6 @@ def port_to_eeprom_mapping(self):

def get_transceiver_change_event(self, timeout):
port_dict = {}
port = 0

if timeout == 0:
cd_ms = sys.maxint
Expand Down Expand Up @@ -264,7 +261,6 @@ def get_transceiver_change_event(self, timeout):
return True, port_dict
else:
return True, {}
return False, {}



0 comments on commit 30ba574

Please sign in to comment.