From 0e7efab6ab4ab33acc8b0f602f7068755e573e30 Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Sat, 20 Jun 2020 18:22:10 -0700 Subject: [PATCH] more pylint removal --- whatsthis/discovery/__init__.py | 2 +- whatsthis/file.py | 2 +- whatsthis/subp.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/whatsthis/discovery/__init__.py b/whatsthis/discovery/__init__.py index 79a781f..a0d0e6e 100644 --- a/whatsthis/discovery/__init__.py +++ b/whatsthis/discovery/__init__.py @@ -11,7 +11,7 @@ from whatsthis.discovery import probes -class Discovery: # pylint: disable=R0903 +class Discovery: """Do the discovering.""" def __init__(self, data_dir=None): diff --git a/whatsthis/file.py b/whatsthis/file.py index c9cfd75..ae66676 100644 --- a/whatsthis/file.py +++ b/whatsthis/file.py @@ -32,7 +32,7 @@ def copy(src, dst): return True -def dd(src, dst): # pylint: disable=invalid-name +def dd(src, dst): """Use dd to copy a file. There are times where dd fails due to a list of reasons. This diff --git a/whatsthis/subp.py b/whatsthis/subp.py index caac5e7..e8f53bf 100644 --- a/whatsthis/subp.py +++ b/whatsthis/subp.py @@ -32,7 +32,7 @@ def execute(args, data=None, env=None, shell=False): return Result(out, err, process.returncode) -class Result(str): # pylint: disable=too-many-ancestors +class Result(str): """Result Class.""" def __init__(self, stdout, stderr="", return_code=-1): @@ -60,6 +60,6 @@ def failed(self): return not self.ok @property - def ok(self): # pylint: disable=invalid-name + def ok(self): """Return boolean from return_code.""" return not bool(self.return_code)