diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-05-31 19:02:58 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:58 -0800 |
commit | 6183d9eeaa2cae6ca859b0a2f125d13842f57c39 (patch) | |
tree | 4f9f21529896aa90010239c16e17b6776e9f9c7e /mpm/python/usrp_mpm/eeprom.py | |
parent | 34c2fa0beea10308bc9afe6f20b734fc0839b226 (diff) | |
download | uhd-6183d9eeaa2cae6ca859b0a2f125d13842f57c39.tar.gz uhd-6183d9eeaa2cae6ca859b0a2f125d13842f57c39.tar.bz2 uhd-6183d9eeaa2cae6ca859b0a2f125d13842f57c39.zip |
mpm: Made code Python3-compatible
Diffstat (limited to 'mpm/python/usrp_mpm/eeprom.py')
-rw-r--r-- | mpm/python/usrp_mpm/eeprom.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/eeprom.py b/mpm/python/usrp_mpm/eeprom.py index 67920e885..e61b8ee09 100644 --- a/mpm/python/usrp_mpm/eeprom.py +++ b/mpm/python/usrp_mpm/eeprom.py @@ -19,6 +19,8 @@ EEPROM management code """ import struct +from builtins import zip +from builtins import object EEPROM_DEFAULT_HEADER = struct.Struct("!I I") @@ -124,7 +126,7 @@ def read_eeprom( eeprom_parser = struct.Struct(eeprom_header_format[version]) eeprom_keys = eeprom_header_keys[version] parsed_data = eeprom_parser.unpack_from(data) - return dict(zip(eeprom_keys, parsed_data)) + return dict(list(zip(eeprom_keys, parsed_data))) # Dawaj, dawaj max_size = max_size or -1 with open(nvmem_path, "rb") as nvmem_file: |