mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #5231: "make html" does not read and build "po" files in "locale" dir
This commit is contained in:
1
CHANGES
1
CHANGES
@@ -26,6 +26,7 @@ Bugs fixed
|
||||
* C++, parse unary right fold expressions and binary fold expressions.
|
||||
* pycode could not handle egg files on windows
|
||||
* #5928: KeyError: 'DOCUTILSCONFIG' when running build
|
||||
* #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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user