This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is posixpath from Python 3.4 based (not ideal, but it is what I had handy) | |
from os.path import _get_sep | |
# str-only. | |
def fspath(path): | |
try: | |
path = path.__fspath__() | |
except AttributeError: |