summaryrefslogtreecommitdiff
path: root/sphinx/builders/html.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/builders/html.py')
-rw-r--r--sphinx/builders/html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/builders/html.py b/sphinx/builders/html.py
index 42f5897f2..74a0429cc 100644
--- a/sphinx/builders/html.py
+++ b/sphinx/builders/html.py
@@ -956,7 +956,7 @@ class StandaloneHTMLBuilder(Builder):
try:
searchindexfn = path.join(self.outdir, self.searchindex_filename)
if self.indexer_dumps_unicode:
- with open(searchindexfn, 'r', encoding='utf-8') as ft: # type: ignore
+ with open(searchindexfn, encoding='utf-8') as ft: # type: ignore
self.indexer.load(ft, self.indexer_format)
else:
with open(searchindexfn, 'rb') as fb: