os.path.normpath bug?

billiejoex gnewsg at gmail.com
Thu Jun 14 16:26:52 EDT 2007


Hi there,
I've noticed that os.path.normpath does not collapse redundant
separators if they're located at the beginning of the string:

>>> print os.path.normpath('/a//b//c')
\a\b\c
>>> print os.path.normpath('//a//b//c')
\\a\b\c

Is it intentional or is it a bug?




More information about the Python-list mailing list