Check whether obj is a `pathlib.Path` object. Prefer using ``isinstance(obj, os.PathLike)`` instead of this function.
(obj)
| 81 | return asunicode(x) |
| 82 | |
| 83 | def is_pathlib_path(obj): |
| 84 | """ |
| 85 | Check whether obj is a `pathlib.Path` object. |
| 86 | |
| 87 | Prefer using ``isinstance(obj, os.PathLike)`` instead of this function. |
| 88 | """ |
| 89 | return isinstance(obj, Path) |
| 90 | |
| 91 | # from Python 3.7 |
| 92 | class contextlib_nullcontext: |