From 271e1d1340d669c890d6832f256304464702ff10 Mon Sep 17 00:00:00 2001 From: Honza Javorek Date: Tue, 3 Jul 2018 14:13:46 +0200 Subject: [PATCH] make linter happy --- sphinx/builders/linkcheck.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sphinx/builders/linkcheck.py b/sphinx/builders/linkcheck.py index b43849022..8079b680a 100644 --- a/sphinx/builders/linkcheck.py +++ b/sphinx/builders/linkcheck.py @@ -122,7 +122,10 @@ class CheckExternalLinksBuilder(Builder): # type: () -> None kwargs = { 'allow_redirects': True, - 'headers': {'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'}, + 'headers': { + 'Accept': ('text/html,application/xhtml+xml,' + 'application/xml;q=0.9,*/*;q=0.8') + }, } if self.app.config.linkcheck_timeout: kwargs['timeout'] = self.app.config.linkcheck_timeout