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

noreply@sourceforge.net noreply@sourceforge.net
Mon, 11 Nov 2002 08:01:01 -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: Open
Resolution: None
Priority: 5
Submitted By: Nicholas Jones (carpaski)
Assigned to: Nobody/Anonymous (nobody)
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'


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

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