]> granicus.if.org Git - python/commit
Withdraw the UNC support from splitdrive(). Instead, a new function
authorGuido van Rossum <guido@python.org>
Tue, 6 Apr 1999 19:32:19 +0000 (19:32 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 6 Apr 1999 19:32:19 +0000 (19:32 +0000)
commitf3c695c4675e61d5c303c96db699184253810306
tree0895e627025bc3d437dac785d19e544256c9f483
parent8137680704e1d2b81a0b7fef84c5e954369b6231
Withdraw the UNC support from splitdrive().  Instead, a new function
splitunc() parses UNC paths.  The contributor of the UNC parsing in
splitdrive() doesn't like it, but I haven't heard a good reason to
keep it, and it causes some problems.  (I think there's a
philosophical problem -- to me, the split*() functions are purely
syntactical, and the fact that \\foo is not a valid path doesn't mean
that it shouldn't be considered an absolute path.)

Also (quite separately, but strangely related to the philosophical
issue above) fix abspath() so that if win32api exists, it doesn't fail
when the path doesn't actually exist -- if GetFullPathName() fails,
fall back on the old strategy (join with getcwd() if neccessary, and
then use normpath()).
Lib/ntpath.py