This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barneygale
Recipients barneygale, eryksun, ikelos
Date 2022-02-06.00:10:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644106212.29.0.0224613504267.issue46654@roundup.psfhosted.org>
In-reply-to
Content
urllib uses nturl2path under the hood. On my system it seems to return reasonable results for both two and four leading slashes:

    >>> nturl2path.url2pathname('////host/share/test.py')
    '\\\\host\\share\\test.py'
    >>> nturl2path.url2pathname('//host/share/test.py')
    '\\\\host\\share\\test.py'

(note that urllib strips the `file:` prefix before calling this function).
History
Date User Action Args
2022-02-06 00:10:12barneygalesetrecipients: + barneygale, ikelos, eryksun
2022-02-06 00:10:12barneygalesetmessageid: <1644106212.29.0.0224613504267.issue46654@roundup.psfhosted.org>
2022-02-06 00:10:12barneygalelinkissue46654 messages
2022-02-06 00:10:12barneygalecreate