Fix a base string usage that need to also take bytes into account
This commit is contained in:
parent
9c9b55b549
commit
0cd77dfea5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue