From fa9a1f65578e3efecc870b4d0cbc8e25a22e1918 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Wed, 18 Dec 2019 09:55:55 +0100 Subject: [PATCH] codefactor: fix comparison to litteral maintainability issue --- docs/source/_ext/autodoxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/_ext/autodoxy.py b/docs/source/_ext/autodoxy.py index 00720cb7f2..f0105da8e5 100644 --- a/docs/source/_ext/autodoxy.py +++ b/docs/source/_ext/autodoxy.py @@ -130,7 +130,7 @@ class _DoxygenXmlParagraphFormatter(object): self.continue_line = True def visit_parameterlist(self, node): - lines = [l for l in type(self)().generic_visit(node).lines if l is not ''] + lines = [l for l in type(self)().generic_visit(node).lines if l != ''] self.lines.extend([':parameters:', ''] + ['* %s' % l for l in lines] + ['']) def visit_simplesect(self, node): -- 2.20.1