aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/prefs.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-07-02 15:19:34 +0200
committermichael-west <michael.west@ettus.com>2020-07-09 00:39:11 -0700
commita252a2f3d8ff70b9628d097dfcd99ac9935dbe33 (patch)
tree84a856302ddc056314bf0d4f393f30569421d1fc /mpm/python/usrp_mpm/prefs.py
parentf2f8ca056e04d4c021814c93706a24039821d8b6 (diff)
downloaduhd-a252a2f3d8ff70b9628d097dfcd99ac9935dbe33.tar.gz
uhd-a252a2f3d8ff70b9628d097dfcd99ac9935dbe33.tar.bz2
uhd-a252a2f3d8ff70b9628d097dfcd99ac9935dbe33.zip
mpm: Fix various Pylint issues
No functional changes. Fixes for things that PyLint complains about, but are safe to change anyway, as well as a minor improvement to a docstring that referenced non-existant args. This touches files that are mpm.conf-related.
Diffstat (limited to 'mpm/python/usrp_mpm/prefs.py')
-rw-r--r--mpm/python/usrp_mpm/prefs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/mpm/python/usrp_mpm/prefs.py b/mpm/python/usrp_mpm/prefs.py
index 0e9d636b2..55b6d803d 100644
--- a/mpm/python/usrp_mpm/prefs.py
+++ b/mpm/python/usrp_mpm/prefs.py
@@ -8,7 +8,6 @@ MPM preferences management
"""
import configparser
-from builtins import object
from usrp_mpm.mpmlog import TRACE, DEBUG, INFO, WARNING, ERROR, CRITICAL
# Store the global preferences object
@@ -19,6 +18,9 @@ MPM_DEFAULT_CONFFILE_PATH = '/etc/uhd/mpm.conf'
MPM_DEFAULT_LOG_LEVEL = 'info'
MPM_DEFAULT_LOG_BUF_SIZE = 100 # Number of log records to buf
+# ConfigParser has too many parents for PyLint's liking, but we don't control
+# that, so disable that warning
+# pylint: disable=too-many-ancestors
class _MPMPrefs(configparser.ConfigParser):
"""
Container for MPM preferences.
@@ -83,6 +85,7 @@ class _MPMPrefs(configparser.ConfigParser):
because the logger isn't ready yet.
"""
return self._errors
+# pylint: enable=too-many-ancestors
def get_prefs():
"""
@@ -92,4 +95,3 @@ def get_prefs():
if _PREFS is None:
_PREFS = _MPMPrefs()
return _PREFS
-