STINNER Victor <vstin...@python.org> added the comment:
Maybe os.fspath() can be used: >>> os.fspath(True) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: expected str, bytes or os.PathLike object, not bool ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38445> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com