File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1010from .lrucache import LRUCache
1111from ._repr import make_repr
1212from .path import iteratepath
13- from . import wildcard
1413
1514
1615GlobMatch = namedtuple ("GlobMatch" , ["path" , "info" ])
3029def _translate (pattern , case_sensitive = True ):
3130 # type: (Text, bool) -> Text
3231 """Translate a wildcard pattern to a regular expression.
32+
3333 There is no way to quote meta-characters.
3434 Arguments:
3535 pattern (str): A wildcard pattern.
3636 case_sensitive (bool): Set to `False` to use a case
3737 insensitive regex (default `True`).
38+
3839 Returns:
3940 str: A regex equivalent to the given pattern.
41+
4042 """
4143 if not case_sensitive :
4244 pattern = pattern .lower ()
@@ -71,6 +73,7 @@ def _translate(pattern, case_sensitive=True):
7173 res = res + re .escape (c )
7274 return res
7375
76+
7477def _translate_glob (pattern , case_sensitive = True ):
7578 levels = 0
7679 recursive = False
You can’t perform that action at this time.
0 commit comments