]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix #11939. Set st_dev attribute on Windows to simplify os.path.samefile.
authorBrian Curtin <brian@python.org>
Wed, 26 Dec 2012 13:03:03 +0000 (07:03 -0600)
committerBrian Curtin <brian@python.org>
Wed, 26 Dec 2012 13:03:03 +0000 (07:03 -0600)
commit490b32a3976d84eaf1d6ca8cdcb00eac0ce5055b
treef110633e5ef37e78cecac8701874bb7a02c250bf
parent2bf61abe02d578a9812cb13d4d71e14f481c4cb5
Fix #11939. Set st_dev attribute on Windows to simplify os.path.samefile.

By setting the st_dev attribute, we can then remove some Windows-specific
code and move os.path.samefile/sameopenfile/samestat to Lib/genericpath.py
so all platforms share the same implementation.
Doc/library/os.path.rst
Lib/genericpath.py
Lib/ntpath.py
Lib/posixpath.py
Lib/test/test_genericpath.py
Lib/test/test_posixpath.py
Modules/posixmodule.c