Skip to content

Commit

Permalink
Fix unintended line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
pphuchar committed Aug 15, 2018
1 parent 79838d5 commit 5db2123
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions device/celestica/x86_64-cel_seastone-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ def __init__(self):

for x in range(self.PORT_START, self.PORT_END + 1):
if self.port_start == 1:
self.port_to_eeprom_mapping[
x] = eeprom_path.format((x - 1) + 26)
self.port_to_eeprom_mapping[x] = eeprom_path.format((x - 1) + 26)
else:
self.port_to_eeprom_mapping[x] = eeprom_path.format(x + 26)
SfpUtilBase.__init__(self)
Expand All @@ -53,8 +52,7 @@ def get_presence(self, port_num):
return False

try:
reg_file = open(
"/sys/devices/platform/dx010_cpld/qsfp_modprs", "r")
reg_file = open("/sys/devices/platform/dx010_cpld/qsfp_modprs", "r")
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
Expand Down Expand Up @@ -85,8 +83,7 @@ def get_low_power_mode(self, port_num):
return False

try:
reg_file = open(
"/sys/devices/platform/dx010_cpld/qsfp_lpmode", "r")
reg_file = open("/sys/devices/platform/dx010_cpld/qsfp_lpmode", "r")
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
Expand Down Expand Up @@ -117,8 +114,7 @@ def set_low_power_mode(self, port_num, lpmode):
return False

try:
reg_file = open(
"/sys/devices/platform/dx010_cpld/qsfp_lpmode", "r+")
reg_file = open("/sys/devices/platform/dx010_cpld/qsfp_lpmode", "r+")
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
Expand Down Expand Up @@ -158,8 +154,7 @@ def reset(self, port_num):
return False

try:
reg_file = open(
"/sys/devices/platform/dx010_cpld/qsfp_reset", "r+")
reg_file = open("/sys/devices/platform/dx010_cpld/qsfp_reset", "r+")
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
Expand Down

0 comments on commit 5db2123

Please sign in to comment.