diff --git a/device/celestica/x86_64-cel_seastone-r0/plugins/sfputil.py b/device/celestica/x86_64-cel_seastone-r0/plugins/sfputil.py index ea66b3d91f35..c361659b0f17 100644 --- a/device/celestica/x86_64-cel_seastone-r0/plugins/sfputil.py +++ b/device/celestica/x86_64-cel_seastone-r0/plugins/sfputil.py @@ -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) @@ -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 @@ -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 @@ -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 @@ -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