Skip to content

Commit dc801e2

Browse files
committed
v2.0.2
-------- 2022-06-03: define __fspath__ only on python >= 3.10
1 parent 2e1de62 commit dc801e2

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

pathlib3x/pathlib3x.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -554,11 +554,8 @@ def __str__(self):
554554
self._str = self._format_parsed_parts(self._drv, self._root, self._parts) or "."
555555
return self._str
556556

557-
# bitranox - define __fspath__ only on python >= 3.10
558-
'''
559557
def __fspath__(self):
560558
return str(self)
561-
'''
562559

563560
def as_posix(self):
564561
"""Return the string representation of the path with forward (/)

pathlib3x/pathlib3x.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ class PurePath(PathLike[str]):
7575
def __new__(cls: type[Self], *args: StrPath) -> Self: ...
7676
def __hash__(self) -> int: ...
7777
def __eq__(self, other: object) -> bool: ...
78-
# bitranox - define __fspath__ only on python >= 3.10
79-
'''
8078
def __fspath__(self) -> str: ...
81-
'''
8279
def __lt__(self, other: PurePath) -> bool: ...
8380
def __le__(self, other: PurePath) -> bool: ...
8481
def __gt__(self, other: PurePath) -> bool: ...

0 commit comments

Comments
 (0)