]> granicus.if.org Git - python/commit
Patch by Brian Hooper, somewhat augmented by GvR, to strip a trailing
authorGuido van Rossum <guido@python.org>
Fri, 21 Apr 2000 18:54:45 +0000 (18:54 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 21 Apr 2000 18:54:45 +0000 (18:54 +0000)
commitace88aebbbbb5c96eb3dd88308d03d3d3b9c73e5
tree6f0e96a723fdda92a52434ea57869ed9ab1aede3
parente0cd291b8123859191cbef90316d55b39e4ce3a1
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!)
Modules/posixmodule.c