[Distutils] Round 6 - PEP 440 - Version Identification and Dependency Specification Version

Paul Moore p.f.moore at gmail.com
Sun Aug 10 10:01:31 CEST 2014


On 10 August 2014 01:03, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Paul Moore wrote:
>>
>> FWIW, it looks like file:////myserver/share/WINDOWS/clock.avi is how
>> you'd refer to \\myserver\share\WINDOWS\clock.avi.
>
>
> Where did you get that from? According to this it's wrong:
>
> http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx
>
> It should be
>
>    file://myserver/share/WINDOWS/clock.avi

>>> from urllib.request import pathname2url
>>> pathname2url(r'\\myserver\share\WINDOWS\clock.avi')
'////myserver/share/WINDOWS/clock.avi'

Bug in urllib?

Paul


More information about the Distutils-SIG mailing list