Skip to content

Commit

Permalink
Fix flake8 E231 reported linting failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbu committed Jul 30, 2023
1 parent f683244 commit eb0499a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sphinx/builders/linkcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def finish(self) -> None:

output_text = path.join(self.outdir, 'output.txt')
output_json = path.join(self.outdir, 'output.json')
with open(output_text, 'w', encoding='utf-8') as self.txt_outfile,\
with open(output_text, 'w', encoding='utf-8') as self.txt_outfile, \
open(output_json, 'w', encoding='utf-8') as self.json_outfile:
for result in checker.check(self.hyperlinks):
self.process_result(result)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_build_linkcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ def test_too_many_requests_retry_after_HTTP_date(app, capsys):

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

0 comments on commit eb0499a

Please sign in to comment.