x
This commit is contained in:
parent
f11302b98e
commit
01df7d24c5
1 changed files with 5 additions and 2 deletions
|
@ -122,9 +122,12 @@ def kexists(path: PathIsh, subpath: str) -> bool:
|
||||||
|
|
||||||
import zipfile
|
import zipfile
|
||||||
if sys.version_info[:2] >= (3, 8):
|
if sys.version_info[:2] >= (3, 8):
|
||||||
|
# meh... zipfile.Path is not available on 3.7
|
||||||
ZipPathBase = zipfile.Path
|
ZipPathBase = zipfile.Path
|
||||||
else:
|
else:
|
||||||
# meh... it's not available on 3.7
|
if typing.TYPE_CHECKING:
|
||||||
|
ZipPathBase = pathlib.Path
|
||||||
|
else:
|
||||||
ZipPathBase = object
|
ZipPathBase = object
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue