Skip to content

Commit

Permalink
change import
Browse files Browse the repository at this point in the history
  • Loading branch information
predragnikolic committed Feb 13, 2024
1 parent 4c21016 commit c70cd57
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugin/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
from .typing import cast
from .url import filename_to_uri
from .url import parse_uri
from wcmatch.glob import BRACE
from wcmatch.glob import globmatch
from wcmatch.glob import GLOBSTAR
from wcmatch import glob
import contextlib
import fnmatch
import os
Expand Down Expand Up @@ -411,7 +409,7 @@ def __call__(self, view: sublime.View) -> bool:
if isinstance(uri, str) and parse_uri(uri)[0] != self.scheme:
return False
if self.pattern:
if not globmatch(view.file_name() or "", self.pattern, flags=GLOBSTAR | BRACE):
if not glob.globmatch(view.file_name() or "", self.pattern, flags=glob.GLOBSTAR | glob.BRACE):
return False
return True

Expand Down

0 comments on commit c70cd57

Please sign in to comment.