]> granicus.if.org Git - python/commit
Issue #25911: Backport os._DummyDirEntry fixes
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 29 Mar 2016 11:38:22 +0000 (13:38 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 29 Mar 2016 11:38:22 +0000 (13:38 +0200)
commit06ddd35f5f88fb22d1378dc8fb7bc6d87d0d05a6
treea016506e906231b3ce2a59004e56c5b7420d4493
parent8ba2083e0e614a1bca0a12aa61e8a55389a1220f
Issue #25911: Backport os._DummyDirEntry fixes

* Fix test_os.BytesWalkTests on Windows
* Mimick better the reference os.DirEntry on Windows
* _DummyDirEntry now caches os.stat() result
* _DummyDirEntry constructor now tries to get os.stat()
* Fix os._DummyDirEntry.is_symlink(), don't follow symbolic links:
  use os.stat(path, follow_symlinks=False).
Lib/os.py