diff options
author | Guido van Rossum <guido@python.org> | 2000-04-21 18:54:45 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-04-21 18:54:45 +0000 |
commit | ace88aebbbbb5c96eb3dd88308d03d3d3b9c73e5 (patch) | |
tree | 6f0e96a723fdda92a52434ea57869ed9ab1aede3 /Mac/Python/macgetpath.c | |
parent | e0cd291b8123859191cbef90316d55b39e4ce3a1 (diff) | |
download | cpython-git-ace88aebbbbb5c96eb3dd88308d03d3d3b9c73e5.tar.gz |
Patch by Brian Hooper, somewhat augmented by GvR, to strip a trailing
backslash from the pathname argument to stat() on Windows -- while on
Unix, stat("/bin/") succeeds and does the same thing as stat("/bin"),
on Windows, stat("\\windows\\") fails while stat("\\windows") succeeds.
This modified version of the patch recognizes both / and \.
(This is odd behavior of the MS C library, since
os.listdir("\\windows\\") succeeds!)
Diffstat (limited to 'Mac/Python/macgetpath.c')
0 files changed, 0 insertions, 0 deletions