mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
commit
06da488f6f
1
CHANGES
1
CHANGES
@ -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
|
||||
--------
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user