replace PosixPath with PurePosixPath (fixes #28)
This commit is contained in:
parent
4a83ff4864
commit
6a8514200f
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
"""
|
||||
Various helpers for compression
|
||||
"""
|
||||
from pathlib import Path, PosixPath
|
||||
from pathlib import Path, PurePosixPath
|
||||
from typing import Union
|
||||
|
||||
PathIsh = Union[Path, str]
|
||||
|
@ -33,7 +33,7 @@ def kopen(path: PathIsh, *args, **kwargs): # TODO is it bytes stream??
|
|||
return pp.open(*args, **kwargs)
|
||||
|
||||
|
||||
class CPath(PosixPath):
|
||||
class CPath(PurePosixPath):
|
||||
"""
|
||||
Ugh. So, can't override Path because of some _flavour thing.
|
||||
Path only has _accessor and _closed slots, so can't directly set .open method
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue