Skip to content

Commit 224efa3

Browse files
committed
trailing spaces & import order
1 parent 94a52e0 commit 224efa3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sphinx/builders/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import codecs
66
import pickle
77
import time
8+
from fnmatch import fnmatch
89
from os import path
910
from typing import TYPE_CHECKING, Any
10-
from fnmatch import fnmatch
1111

1212
from docutils import nodes
1313
from docutils.utils import DependencyList
@@ -423,14 +423,14 @@ def read(self) -> list[str]:
423423
if self.config.root_doc not in self.env.all_docs:
424424
root_doc_path = self.env.doc2path(self.config.root_doc)
425425
if ("**" in self.config.exclude_patterns or
426-
any(fnmatch(root_doc_path, pat) or root_doc_path.endswith(pat)
426+
any(fnmatch(root_doc_path, pat) or root_doc_path.endswith(pat)
427427
for pat in self.config.exclude_patterns)):
428428
raise SphinxError('customized exclude_patterns is set ' +
429429
'and root file %s is in the exclude_patterns' %
430430
root_doc_path)
431-
elif ("**" not in self.config.include_patterns and
432-
not any((fnmatch(root_doc_path, pat) or root_doc_path.endswith(pat))
433-
for pat in self.config.include_patterns)):
431+
elif ("**" not in self.config.include_patterns and
432+
not any((fnmatch(root_doc_path, pat) or root_doc_path.endswith(pat))
433+
for pat in self.config.include_patterns)):
434434
raise SphinxError('customized include_patterns is set, ' +
435435
'but root file %s is not in the include_patterns' %
436436
root_doc_path)

0 commit comments

Comments
 (0)