Skip to content

Commit 4958d2a

Browse files
jfbuAA-Turner
authored andcommitted
Fix flake8 E231 reported linting failure
1 parent 4862da8 commit 4958d2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sphinx/builders/linkcheck.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def finish(self) -> None:
6565

6666
output_text = path.join(self.outdir, 'output.txt')
6767
output_json = path.join(self.outdir, 'output.json')
68-
with open(output_text, 'w', encoding='utf-8') as self.txt_outfile,\
68+
with open(output_text, 'w', encoding='utf-8') as self.txt_outfile, \
6969
open(output_json, 'w', encoding='utf-8') as self.json_outfile:
7070
for result in checker.check(self.hyperlinks):
7171
self.process_result(result)

tests/test_build_linkcheck.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ def test_too_many_requests_retry_after_HTTP_date(app, capsys):
782782

783783
@pytest.mark.sphinx('linkcheck', testroot='linkcheck-localserver', freshenv=True)
784784
def test_too_many_requests_retry_after_without_header(app, capsys):
785-
with http_server(make_retry_after_handler([(429, None), (200, None)])),\
785+
with http_server(make_retry_after_handler([(429, None), (200, None)])), \
786786
mock.patch("sphinx.builders.linkcheck.DEFAULT_DELAY", 0):
787787
app.build()
788788
content = (app.outdir / 'output.json').read_text(encoding='utf8')

0 commit comments

Comments
 (0)