mirror of https://github.com/python/cpython
bpo-30511: Add note on thread safety to shutil.make_archive() (#26933)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
3b56b3b97d
commit
64f54b7ccd
|
@ -595,6 +595,10 @@ provided. They rely on the :mod:`zipfile` and :mod:`tarfile` modules.
|
||||||
|
|
||||||
.. audit-event:: shutil.make_archive base_name,format,root_dir,base_dir shutil.make_archive
|
.. audit-event:: shutil.make_archive base_name,format,root_dir,base_dir shutil.make_archive
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
This function is not thread-safe.
|
||||||
|
|
||||||
.. versionchanged:: 3.8
|
.. versionchanged:: 3.8
|
||||||
The modern pax (POSIX.1-2001) format is now used instead of
|
The modern pax (POSIX.1-2001) format is now used instead of
|
||||||
the legacy GNU format for archives created with ``format="tar"``.
|
the legacy GNU format for archives created with ``format="tar"``.
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
Clarify that :func:`shutil.make_archive` is not thread-safe due to
|
||||||
|
reliance on changing the current working directory.
|
Loading…
Reference in New Issue