Skip to content

Commit c70cd57

Browse files
change import
1 parent 4c21016 commit c70cd57

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

plugin/core/types.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
from .typing import cast
77
from .url import filename_to_uri
88
from .url import parse_uri
9-
from wcmatch.glob import BRACE
10-
from wcmatch.glob import globmatch
11-
from wcmatch.glob import GLOBSTAR
9+
from wcmatch import glob
1210
import contextlib
1311
import fnmatch
1412
import os
@@ -411,7 +409,7 @@ def __call__(self, view: sublime.View) -> bool:
411409
if isinstance(uri, str) and parse_uri(uri)[0] != self.scheme:
412410
return False
413411
if self.pattern:
414-
if not globmatch(view.file_name() or "", self.pattern, flags=GLOBSTAR | BRACE):
412+
if not glob.globmatch(view.file_name() or "", self.pattern, flags=glob.GLOBSTAR | glob.BRACE):
415413
return False
416414
return True
417415

0 commit comments

Comments
 (0)