flake8: fix a problem, add differing warning #

This commit is contained in:
Georg Brandl 2015-03-08 17:17:22 +01:00
parent 548a6dc22e
commit 0d5cb25c0d
2 changed files with 2 additions and 2 deletions

View File

@ -25,5 +25,5 @@ universal = 1
[flake8]
max-line-length=95
ignore=E116,E221,E226,E241,E251
ignore=E113,E116,E221,E226,E241,E251
exclude=ez_setup.py,utils/*,tests/*,build/*,sphinx/search/*,sphinx/pycode/pgen2/*

View File

@ -140,7 +140,7 @@ def traverse_translatable_index(doctree):
"""Traverse translatable index node from a document tree."""
def is_block_index(node):
return isinstance(node, addnodes.index) and \
node.get('inline') == False
node.get('inline') is False
for node in doctree.traverse(is_block_index):
if 'raw_entries' in node:
entries = node['raw_entries']