Signed-off-by: Michael Hanselmann <[email protected]>
---
 lib/build/sphinx_ext.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/lib/build/sphinx_ext.py b/lib/build/sphinx_ext.py
index 0af8ff8..6594107 100644
--- a/lib/build/sphinx_ext.py
+++ b/lib/build/sphinx_ext.py
@@ -165,11 +165,16 @@ def PythonEvalRole(role, rawtext, text, lineno, inliner,
   The expression's result is included as a literal.
 
   """
+  # pylint: disable-msg=W0102,W0613,W0142
+  # W0102: Dangerous default value as argument
+  # W0142: Used * or ** magic
+  # W0613: Unused argument
+
   code = docutils.utils.unescape(text, restore_backslashes=True)
 
   try:
     result = eval(code, EVAL_NS)
-  except Exception, err:
+  except Exception, err: # pylint: disable-msg=W0703
     msg = inliner.reporter.error("Failed to evaluate %r: %s" % (code, err),
                                  line=lineno)
     return ([inliner.problematic(rawtext, rawtext, msg)], [msg])
-- 
1.7.3.5

Reply via email to