Fix a base string usage that need to also take bytes into account

This commit is contained in:
Pierre Sassoulas 2024-05-21 09:03:50 +02:00
parent 9c9b55b549
commit 0cd77dfea5
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ class NeverRaised(Exception):
class Visitor:
def __init__(self, fil, rec, ignore, bf, sort):
if isinstance(fil, str):
if isinstance(fil, (str, bytes)):
fil = FNMatcher(fil)
if isinstance(rec, str):
self.rec: Callable[[LocalPath], bool] = FNMatcher(rec)