[issue5799] Change ntpath functions to implicitly support UNC paths
Larry Hastings
report at bugs.python.org
Mon May 4 04:17:58 CEST 2009
Larry Hastings <larry at hastings.org> added the comment:
I've generated a new patch, attached. I don't know why you had trouble
applying. I tested this one with a clean tree and "patch -p1 < ..." and
it applied cleanly. If it fails again, how about I upload the three
modified files?
I removed the extraneous changes. I claim that the changes that remain
in ntpath are salient to the UNC changes, but feel free to call me on it
if I got that wrong. (Or make a new patch as you have graciously
volunteered to do.)
I also amended splitdrive's UNC handling slightly; it now rejects
UNC-like paths that start with three slashes or have two slashes between
the host and mount point. Thus neither "///computer/mountpoint/x" nor
"//computer//mountpoint/x" will be parsed as UNC paths.
----------
Added file: http://bugs.python.org/file13862/lch.ntpath.r72242.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5799>
_______________________________________
More information about the Python-bugs-list
mailing list