We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c720bb commit d838772Copy full SHA for d838772
mesonpy/_compat.py
@@ -9,7 +9,6 @@
9
import functools
10
import importlib.resources
11
import os
12
-import pathlib
13
import sys
14
import typing
15
@@ -44,18 +43,8 @@ def read_binary(package: str, resource: str) -> bytes:
44
43
Path = Union[str, os.PathLike]
45
46
47
-# backport og pathlib.Path.is_relative_to
48
-def is_relative_to(path: pathlib.Path, other: Union[pathlib.Path, str]) -> bool:
49
- try:
50
- path.relative_to(other)
51
- except ValueError:
52
- return False
53
- return True
54
-
55
56
__all__ = [
57
'cached_property',
58
- 'is_relative_to',
59
'read_binary',
60
'Collection',
61
'Iterable',
0 commit comments