Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make eeprom_tlvinfo.py Python3 compatible (sonic-net#152)
Fix errors like below: ``` admin@sonic:~$ show version SONiC Software Version: SONiC.master.0-dirty-20201204.005739 Distribution: Debian 10.6 Kernel: 4.19.0-9-2-amd64 Build commit: 873fb969 Build date: Fri Dec 4 09:02:43 UTC 2020 Built by: user@sonic-build Platform: x86_64-accton_wedge100bf_32x-r0 HwSKU: montara ASIC: barefoot Traceback (most recent call last): File "/usr/local/bin/decode-syseeprom", line 171, in <module> exit(main()) File "/usr/local/bin/decode-syseeprom", line 47, in main t = class_('board', '','','') File "/usr/share/sonic/device/x86_64-accton_wedge100bf_32x-r0/plugins/eeprom.py", line 113, in __init__ if self.eeprom_init(): File "/usr/share/sonic/device/x86_64-accton_wedge100bf_32x-r0/plugins/eeprom.py", line 180, in eeprom_init self, "", [eeprom_params]) File "/usr/local/lib/python3.7/dist-packages/sonic_eeprom/eeprom_tlvinfo.py", line 178, in set_eeprom new_tlvs += new_tlv TypeError: can't concat str to bytearray ```
- Loading branch information