mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
flake8: fix a problem, add differing warning #
This commit is contained in:
parent
548a6dc22e
commit
0d5cb25c0d
@ -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/*
|
||||
|
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user