[elbe-devel] [PATCH v2 58/66] hashes: Fix Pylint

Olivier Dion dion at linutronix.de
Fri Jun 5 19:07:22 CEST 2020


27:0: R0205: (useless-object-inheritance)

Signed-off-by: Olivier Dion <dion at linutronix.de>
Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/hashes.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/elbepack/hashes.py b/elbepack/hashes.py
index e32d7456..1e3ea0a7 100644
--- a/elbepack/hashes.py
+++ b/elbepack/hashes.py
@@ -23,7 +23,8 @@ def validate_sha256(fname, expected_hash):
                 'file "%s" failed to verify ! got: "%s" expected: "%s"' %
                 (fname, m.hexdigest(), expected_hash))
 
-
+# TODO:py3 Remove object inheritance
+# pylint: disable=useless-object-inheritance
 class HashValidator(object):
     def __init__(self, base_url):
         self.hashes = {}
-- 
2.27.0




More information about the elbe-devel mailing list