aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/eeprom.py
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/python/usrp_mpm/eeprom.py')
-rw-r--r--mpm/python/usrp_mpm/eeprom.py4
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: