commit | ace88aebbbbb5c96eb3dd88308d03d3d3b9c73e5 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Apr 21 18:54:45 2000 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Apr 21 18:54:45 2000 +0000 |
tree | 6f0e96a723fdda92a52434ea57869ed9ab1aede3 | |
parent | e0cd291b8123859191cbef90316d55b39e4ce3a1 [diff] |
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!)