Message412608
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). |
|
Date |
User |
Action |
Args |
2022-02-06 00:10:12 | barneygale | set | recipients:
+ barneygale, ikelos, eryksun |
2022-02-06 00:10:12 | barneygale | set | messageid: <1644106212.29.0.0224613504267.issue46654@roundup.psfhosted.org> |
2022-02-06 00:10:12 | barneygale | link | issue46654 messages |
2022-02-06 00:10:12 | barneygale | create | |
|