aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_hwd.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_hwd.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_hwd.py')
-rwxr-xr-xmpm/python/usrp_hwd.py4
1 files changed, 2 insertions, 2 deletions
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())