Skip to content

Commit 745a729

Browse files
committed
Update PathPlus to support Python 3.12
1 parent 0094026 commit 745a729

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

domdf_python_tools/paths.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,12 +401,7 @@ def __new__(cls: Type[_PP], *args, **kwargs) -> _PP: # noqa: D102
401401
if cls is PathPlus:
402402
cls = WindowsPathPlus if os.name == "nt" else PosixPathPlus # type: ignore
403403

404-
self = cls._from_parts(args, init=False)
405-
if not self._flavour.is_supported:
406-
raise NotImplementedError(f"cannot instantiate {cls.__name__!r} on your system")
407-
408-
self._init()
409-
return self
404+
return super().__new__(cls, *args, **kwargs)
410405

411406
def make_executable(self) -> None:
412407
"""

0 commit comments

Comments
 (0)