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