mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
builders/linkcheck: include "experimental" HTTP 308 as "permanently"
Also remove redundant "default" case.
This commit is contained in:
parent
0d80cff43c
commit
3398194135
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user