]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
#4489: Fix usage of fd-based functions to new api introduced earlier today
authorHynek Schlawack <hs@ox.cx>
Sat, 23 Jun 2012 18:28:32 +0000 (20:28 +0200)
committerHynek Schlawack <hs@ox.cx>
Sat, 23 Jun 2012 18:28:32 +0000 (20:28 +0200)
commit2100b42317ccbeed60fba90157b20ef4738f56f1
tree0425868586b37998571b7bbcb131b4d4873929c6
parent1641cea02b036b0a43b68f85bafa5b7e5a4ab97b
#4489: Fix usage of fd-based functions to new api introduced earlier today

Also add an explicit test for safe implementation usage on supported platforms.

As a side effect, this commit adds a module-level attribute 'rmtree_is_safe'
which offers introspection whether the current rmtree implementation is safe
against symlink attacks.
Doc/library/shutil.rst
Lib/shutil.py
Lib/test/test_shutil.py