aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/magnesium.py5
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 2d2e7aa60..13e621414 100644
--- a/mpm/python/usrp_mpm/dboard_manager/magnesium.py
+++ b/mpm/python/usrp_mpm/dboard_manager/magnesium.py
@@ -220,7 +220,7 @@ class Magnesium(BfrfsEEPROM, DboardManagerBase):
" Export a method object, including docstring "
meth_obj = getattr(obj, method)
def func(*args):
- " Functor for storing docstring too "
+ " Functor for storing docstring to "
return meth_obj(*args)
func.__doc__ = meth_obj.__doc__
return func
@@ -228,7 +228,8 @@ class Magnesium(BfrfsEEPROM, DboardManagerBase):
for method in [
x for x in dir(self.mykonos)
if not x.startswith("_") and \
- callable(getattr(self.mykonos, x))]:
+ callable(getattr(self.mykonos, x)) \
+ and not hasattr(self, x)]:
self.log.trace("adding {}".format(method))
setattr(self, method, export_method(myk, method))