_utils.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:deb-python-fasteners 作者: openstack 项目源码 文件源码
def canonicalize_path(path):
    """Canonicalizes a potential path.

    Returns a binary string encoded into filesystem encoding.
    """
    if isinstance(path, six.binary_type):
        return path
    if isinstance(path, six.text_type):
        return _fsencode(path)
    else:
        return canonicalize_path(str(path))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号