Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sffbase] Make convert_hex_to_string() compatible with both Python 2 …
…and Python 3 (#165) When called with Python 3, `str.strip(binascii.unhexlify(ret_str))` will raise an exception: ` descriptor 'strip' requires a 'str' object but received a 'bytes'`. This patch (`binascii.unhexlify(ret_str).decode("utf-8").strip()`) will work properly with both Python 2 and Python 3. Fixes sonic-net/sonic-platform-common#160
- Loading branch information