From c70cd57055ddeb8ca0b4ff36acb8531dd81a6e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D1=80=D0=B5=D0=B4=D1=80=D0=B0=D0=B3=20=D0=9D=D0=B8?= =?UTF-8?q?=D0=BA=D0=BE=D0=BB=D0=B8=D1=9B?= Date: Tue, 13 Feb 2024 12:17:15 +0100 Subject: [PATCH] change import --- plugin/core/types.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugin/core/types.py b/plugin/core/types.py index 91b7d16df..42c6211d1 100644 --- a/plugin/core/types.py +++ b/plugin/core/types.py @@ -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 @@ -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