[ python-Bugs-980327 ] ntpath normpath
SourceForge.net
noreply at sourceforge.net
Sat Jul 10 22:49:59 CEST 2004
Bugs item #980327, was opened at 2004-06-26 09:29
Message generated for change (Comment added) made by bcannon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=980327&group_id=5470
Category: Python Library
Group: None
>Status: Closed
>Resolution: Fixed
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: Brett Cannon (bcannon)
Date: 2004-07-10 13:49
Message:
Logged In: YES
user_id=357491
Paul's patch #988607 has been applied and fixed the bug.
----------------------------------------------------------------------
Comment By: Paul Moore (pmoore)
Date: 2004-07-10 12: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