aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/periph_manager/n310.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-05-31 19:02:58 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:58 -0800
commit6183d9eeaa2cae6ca859b0a2f125d13842f57c39 (patch)
tree4f9f21529896aa90010239c16e17b6776e9f9c7e /mpm/python/usrp_mpm/periph_manager/n310.py
parent34c2fa0beea10308bc9afe6f20b734fc0839b226 (diff)
downloaduhd-6183d9eeaa2cae6ca859b0a2f125d13842f57c39.tar.gz
uhd-6183d9eeaa2cae6ca859b0a2f125d13842f57c39.tar.bz2
uhd-6183d9eeaa2cae6ca859b0a2f125d13842f57c39.zip
mpm: Made code Python3-compatible
Diffstat (limited to 'mpm/python/usrp_mpm/periph_manager/n310.py')
-rw-r--r--mpm/python/usrp_mpm/periph_manager/n310.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/n310.py b/mpm/python/usrp_mpm/periph_manager/n310.py
index a5036121a..5817998e7 100644
--- a/mpm/python/usrp_mpm/periph_manager/n310.py
+++ b/mpm/python/usrp_mpm/periph_manager/n310.py
@@ -17,9 +17,11 @@
"""
N310 implementation module
"""
+
from __future__ import print_function
import time
from six import iteritems
+from builtins import object
from .base import PeriphManagerBase
from ..net import get_iface_addrs
from ..net import byte_to_mac
@@ -144,7 +146,7 @@ class n310(PeriphManagerBase):
super(n310, self).init(args)
self._eth_dispatchers = {
x: EthDispatcherTable(self.eth_tables.get(x))
- for x in self._chdr_interfaces.keys()
+ for x in list(self._chdr_interfaces.keys())
}
for ifname, table in iteritems(self._eth_dispatchers):
table.set_ipv4_addr(self._chdr_interfaces[ifname]['ip_addr'])