[Python-bugs-list] [ python-Bugs-636648 ] os.path.normpath leading '//'

noreply@sourceforge.net noreply@sourceforge.net
Wed, 13 Nov 2002 19:39:54 -0800


Bugs item #636648, was opened at 2002-11-11 11:00
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=636648&group_id=5470

Category: Python Library
Group: Python 2.2.1
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Nicholas Jones (carpaski)
>Assigned to: Neal Norwitz (nnorwitz)
Summary: os.path.normpath leading '//'

Initial Comment:
normpath does not remove leading double slashes. (Linux)
Python 2.2.1 (#1, Oct 30 2002, 19:46:40)

>>> import os.path
>>> os.path.normpath("//usr/bin")
'//usr/bin'
>>> os.path.normpath("///usr/bin")
'/usr/bin'
>>> os.path.normpath("//./usr/bin")
'//usr/bin'


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

>Comment By: Neal Norwitz (nnorwitz)
Date: 2002-11-13 22:39

Message:
Logged In: YES 
user_id=33168

This is the intent of the code.  The comment says:
    # POSIX allows one or two initial slashes, but treats
three or more
    # as single slash.

Therefore, I'm closing this as Invalid.

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

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