Merge pull request #5945 from tk0miya/5231_pofiles_build_failure_on_windows

Fix #5231: "make html" does not read and build "po" files in "locale" dir
This commit is contained in:
Takeshi KOMIYA 2019-01-13 22:02:41 +09:00 committed by GitHub
commit 06da488f6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

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

View File

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