diff --git a/platform/barefoot/sonic-platform-modules-bfn-montara/sonic_platform/sfp.py b/platform/barefoot/sonic-platform-modules-bfn-montara/sonic_platform/sfp.py index dc57dbcd9040..cb8931998e39 100644 --- a/platform/barefoot/sonic-platform-modules-bfn-montara/sonic_platform/sfp.py +++ b/platform/barefoot/sonic-platform-modules-bfn-montara/sonic_platform/sfp.py @@ -46,7 +46,7 @@ def qsfp_ports(self): @property def port_to_eeprom_mapping(self): - print "dependency on sysfs has been removed" + print("dependency on sysfs has been removed") raise Exception() def __init__(self): @@ -88,8 +88,8 @@ def qsfp_presence_get(client): try: presence = thrift_try(qsfp_presence_get) except Exception as e: - print e.__doc__ - print e.message + print( e.__doc__) + print(e.message) return presence @@ -167,7 +167,7 @@ def get_transceiver_change_event(self, timeout=0): elif timeout > 0: timeout = timeout / float(1000) # Convert to secs else: - print "get_transceiver_change_event:Invalid timeout value", timeout + print("get_transceiver_change_event:Invalid timeout value", timeout) return False, {} while forever or timeout > 0: