[Python-bugs-list] [ python-Bugs-649961 ] nturl2path.url2pathname() mishandles ///

noreply@sourceforge.net noreply@sourceforge.net
Sat, 07 Dec 2002 07:50:26 -0800


Bugs item #649961, was opened at 2002-12-07 03:19
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=649961&group_id=5470

Category: Windows
Group: Python 2.2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Mike Brown (mike_j_brown)
>Assigned to: Nobody/Anonymous (nobody)
Summary: nturl2path.url2pathname() mishandles ///

Initial Comment:
On Windows, urllib.url2pathname('///path/to/file') returns 
r'\\path\to\file'. This path cannot be used in things like 
open() and os.access(). It should probably return 
r'\path\to\file'.

In addition, '//localhost/path/to/file' is a special case that 
should become '\path\to\file'.  I'll post this as a separate 
bug since it affects all file URIs.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=649961&group_id=5470