From 33981941352b779844f25ab41e13f987d10fc48a Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 30 Nov 2019 08:35:50 +0100 Subject: [PATCH] builders/linkcheck: include "experimental" HTTP 308 as "permanently" Also remove redundant "default" case. --- sphinx/builders/linkcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/builders/linkcheck.py b/sphinx/builders/linkcheck.py index acca8998a..ad80955fb 100644 --- a/sphinx/builders/linkcheck.py +++ b/sphinx/builders/linkcheck.py @@ -255,7 +255,7 @@ class CheckExternalLinksBuilder(Builder): 302: ('with Found', purple), 303: ('with See Other', purple), 307: ('temporarily', turquoise), - 0: ('with unknown code', purple), + 308: ('permanently', darkred), }[code] except KeyError: text, color = ('with unknown code', purple)