Revision 1aa50158

b/lib/build/sphinx_ext.py
165 165
  The expression's result is included as a literal.
166 166

  
167 167
  """
168
  # pylint: disable-msg=W0102,W0613,W0142
169
  # W0102: Dangerous default value as argument
170
  # W0142: Used * or ** magic
171
  # W0613: Unused argument
172

  
168 173
  code = docutils.utils.unescape(text, restore_backslashes=True)
169 174

  
170 175
  try:
171 176
    result = eval(code, EVAL_NS)
172
  except Exception, err:
177
  except Exception, err: # pylint: disable-msg=W0703
173 178
    msg = inliner.reporter.error("Failed to evaluate %r: %s" % (code, err),
174 179
                                 line=lineno)
175 180
    return ([inliner.problematic(rawtext, rawtext, msg)], [msg])

Also available in: Unified diff