From a252a2f3d8ff70b9628d097dfcd99ac9935dbe33 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 2 Jul 2020 15:19:34 +0200 Subject: 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. --- mpm/python/usrp_mpm/prefs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mpm/python/usrp_mpm/prefs.py') 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 - -- cgit v1.2.3