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_hwd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mpm/python/usrp_hwd.py') diff --git a/mpm/python/usrp_hwd.py b/mpm/python/usrp_hwd.py index d971cc5fc..f79932231 100755 --- a/mpm/python/usrp_hwd.py +++ b/mpm/python/usrp_hwd.py @@ -174,7 +174,7 @@ def main(): log_default_delta=args.verbose-args.quiet ).getChild('main') version_string = mpm.__version__ - if len(mpm.__githash__): + if mpm.__githash__: version_string += "-g" + mpm.__githash__ log.info("Launching USRP/MPM, version: %s", version_string) if args.init_only: @@ -189,4 +189,4 @@ def main(): return spawn_processes(log, args) if __name__ == '__main__': - exit(not main()) + sys.exit(not main()) -- cgit v1.2.3