Skip to content

Commit 9e628ee

Browse files
author
atollk
committed
Fixed tox
1 parent 0d97f4c commit 9e628ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fs/glob.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from .lrucache import LRUCache
1111
from ._repr import make_repr
1212
from .path import iteratepath
13-
from . import wildcard
1413

1514

1615
GlobMatch = namedtuple("GlobMatch", ["path", "info"])
@@ -30,13 +29,16 @@
3029
def _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+
7477
def _translate_glob(pattern, case_sensitive=True):
7578
levels = 0
7679
recursive = False

0 commit comments

Comments
 (0)