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/dboard_manager/magnesium.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/dboard_manager/magnesium.py')
-rw-r--r-- | mpm/python/usrp_mpm/dboard_manager/magnesium.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/magnesium.py b/mpm/python/usrp_mpm/dboard_manager/magnesium.py index 9edfe497c..b779607c8 100644 --- a/mpm/python/usrp_mpm/dboard_manager/magnesium.py +++ b/mpm/python/usrp_mpm/dboard_manager/magnesium.py @@ -18,6 +18,7 @@ magnesium dboard implementation module """ +from __future__ import print_function import struct import time from six import iteritems @@ -141,8 +142,8 @@ class Magnesium(DboardManagerBase): def dump_jesd_core(self): for i in range(0x2000, 0x2110, 0x10): - print("0x%04X " % i), + print(("0x%04X " % i), end=' ') for j in range(0, 0x10, 0x4): - print("%08X" % self.radio_regs.peek32(i + j)), + print(("%08X" % self.radio_regs.peek32(i + j)), end=' ') print("") |