[elbe-devel] [PATCH 54/75] licencexml: Fix Pylint
Olivier Dion
dion at linutronix.de
Mon May 25 17:42:47 CEST 2020
46:0: R0205: (useless-object-inheritance)
101:15: W0703: (broad-except)
Signed-off-by: Olivier Dion <dion at linutronix.de>
---
elbepack/licencexml.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/elbepack/licencexml.py b/elbepack/licencexml.py
index f5f4ee5e..d1b21a41 100644
--- a/elbepack/licencexml.py
+++ b/elbepack/licencexml.py
@@ -42,7 +42,8 @@ def get_heuristics_license_list(c):
return set(licenses)
-
+# TODO:py3 Remove object inheritance
+# pylint: disable=useless-object-inheritance
class copyright_xml (object):
def __init__(self):
self.outxml = etree(None)
@@ -98,6 +99,8 @@ class copyright_xml (object):
return
+ # TODO - Handle me?
+ # pylint: disable=broad-except
except Exception:
pass
--
2.26.2
More information about the elbe-devel
mailing list