[elbe-devel] [PATCH v2 35/66] xmlpreprocess: Fix Pylint

Olivier Dion dion at linutronix.de
Fri Jun 5 19:06:59 CEST 2020


232:0: R0205: (useless-object-inheritance)
262:8: C0415: (import-outside-toplevel)
262:8: R0401: (cyclic-import)

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

diff --git a/elbepack/xmlpreprocess.py b/elbepack/xmlpreprocess.py
index d0714489..de19a644 100644
--- a/elbepack/xmlpreprocess.py
+++ b/elbepack/xmlpreprocess.py
@@ -229,7 +229,9 @@ def xmlpreprocess(fname, output, variants=None):
     raise XMLPreprocessError("\n".join(error_log_to_strings(schema.error_log)))
 
 
-class PreprocessWrapper(object):    # pylint: disable=too-few-public-methods
+# TODO:py3 Remove object inheritance
+# pylint: disable=useless-object-inheritance
+class PreprocessWrapper(object):
     def __init__(self, xmlfile, opt):
         self.xmlfile = xmlfile
         self.outxml = None
@@ -259,6 +261,8 @@ class PreprocessWrapper(object):    # pylint: disable=too-few-public-methods
     @staticmethod
     def add_options(oparser):
         # import it here because of cyclic imports
+        # pylint: disable=import-outside-toplevel
+        # pylint: disable=cyclic-import
         from elbepack.commands.preprocess import add_pass_through_options
 
         group = OptionGroup(oparser,
-- 
2.27.0




More information about the elbe-devel mailing list