Another sneaky backward incompatibility introduced by Python 3.7.
https://github.com/python/cpython/pull/1646
import re
import stat
import json
+import typing
from functools import partial
from . import tarfile
match = PARENT_MATCH
# if it's a reg exp, then we just check if it matches
- elif isinstance(i, re._pattern_type):
+ elif isinstance(i, typing.Pattern):
if i.match(path):
match = MATCH
break
return NO_MATCH
# if it's a reg exp, then we just check if it matches
- elif isinstance(e, re._pattern_type):
+ elif isinstance(e, typing.Pattern):
if e.match(path):
return NO_MATCH
else: