[ python-Bugs-980327 ] ntpath normpath

SourceForge.net noreply at sourceforge.net
Sat Jul 10 21:40:19 CEST 2004


Bugs item #980327, was opened at 2004-06-26 17:29
Message generated for change (Comment added) made by pmoore
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=980327&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Keyphrene (keyphrene)
Assigned to: Nobody/Anonymous (nobody)
Summary: ntpath normpath

Initial Comment:
on windows

print os.path.normpath("c:\blah\\blah.exe")
>>> c:\blah\blah.exe # correct syntax

print os.path.normpath("c:\\blah\\blah.exe")
>>> c:\\blah\blah.exe # wrong syntax

this trouble gets an os error with the rename command
(OSError: [Errno 2] No such file or directory)

an solution:
path.replace("\\","\")

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

Comment By: Paul Moore (pmoore)
Date: 2004-07-10 20:40

Message:
Logged In: YES 
user_id=113328

I've just submitted patch 988607 which fixes this issue.

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

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


More information about the Python-bugs-list mailing list