Merge branch '1.8'

This commit is contained in:
Takeshi KOMIYA 2019-01-13 22:05:13 +09:00
commit 71dd5f6a3a
2 changed files with 4 additions and 0 deletions

View File

@ -213,6 +213,7 @@ Bugs fixed
* #5928: KeyError: 'DOCUTILSCONFIG' when running build * #5928: KeyError: 'DOCUTILSCONFIG' when running build
* #5936: LaTeX: PDF build broken by inclusion of image taller than page height * #5936: LaTeX: PDF build broken by inclusion of image taller than page height
in an admonition in an admonition
* #5231: "make html" does not read and build "po" files in "locale" dir
Testing Testing
-------- --------

View File

@ -10,6 +10,8 @@
import re import re
from sphinx.util.osutil import canon_path
if False: if False:
# For type annotation # For type annotation
from typing import Callable, Dict, List, Match, Pattern # NOQA from typing import Callable, Dict, List, Match, Pattern # NOQA
@ -85,6 +87,7 @@ class Matcher:
def match(self, string): def match(self, string):
# type: (str) -> bool # type: (str) -> bool
string = canon_path(string)
return any(pat(string) for pat in self.patterns) return any(pat(string) for pat in self.patterns)