Currently this project still supports Python 2.7 and 3.0. The pathlib was added in Python 3.4. Would you be able to rework this patch to not require pathlib be available?
Something like:
try:
from pathlib import PurePath
except ImportError:
PurePath = None
# ...
if PurePath and isinstance(fileish, PurePath):
# do thing
Currently this project still supports Python 2.7 and 3.0. The
pathlib
was added in Python 3.4. Would you be able to rework this patch to not requirepathlib
be available?Something like: