]> granicus.if.org Git - python/commit
Issue #23605: Fix os.walk(topdown=True), don't cache entry.is_symlink() because
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 18 Mar 2015 10:29:47 +0000 (11:29 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 18 Mar 2015 10:29:47 +0000 (11:29 +0100)
commit7fea974baf7ba69824a511ddaf7776634ea0737a
tree5c3699090ef73e78ebdfac4a8b39ff2549d4da70
parenta47fc5c2ddcf86eb3cb1ad628d04bf3764cfce59
Issue #23605: Fix os.walk(topdown=True), don't cache entry.is_symlink() because
the caller can replace the directory with a different file kind.

The bottom-up way, os.walk(topdown=False), still uses entry.is_symlink(), and
so can be faster than Python 3.4.
Lib/os.py