]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[2.7] bpo-13407: Mention that bz2/tarfile doesn't support multi-stream bzip2 files...
authorAndrés Delfino <adelfino@gmail.com>
Sat, 29 Sep 2018 16:57:35 +0000 (13:57 -0300)
committerBrian Curtin <brian@python.org>
Sat, 29 Sep 2018 16:57:35 +0000 (10:57 -0600)
* bpo-13407: Mention that tarfile doesn't support multistream bzip2 files

* Add mention to bz2 module also

Doc/library/bz2.rst
Doc/library/tarfile.rst
Misc/NEWS.d/next/Documentation/2018-09-29-13-40-06.bpo-13407.BRI-_D.rst [new file with mode: 0644]

index e764f39395445a808e76b3172625f00ee7703439..478a8423f3ff3fa917f90c5f0fbab5579e97f6bd 100644 (file)
@@ -35,6 +35,10 @@ Here is a summary of the features offered by the bz2 module:
 
 * Thread safety uses individual locking mechanism.
 
+.. note::
+   Handling of multi-stream bzip2 files is not supported.  Modules such as
+   `bz2file <https://github.com/nvawda/bz2file>`_ let you overcome this.
+
 
 (De)compression of files
 ------------------------
index c819bf500a196b43ebaf8a7ac036c5fcb62212fe..5789e5efd5a9d360ed4064fcf0302cda33ca6660 100644 (file)
@@ -37,6 +37,10 @@ Some facts and figures:
   character devices and block devices and is able to acquire and restore file
   information like timestamp, access permissions and owner.
 
+.. note::
+   Handling of multi-stream bzip2 files is not supported.  Modules such as
+   `bz2file <https://github.com/nvawda/bz2file>`_ let you overcome this.
+
 
 .. function:: open(name=None, mode='r', fileobj=None, bufsize=10240, \*\*kwargs)
 
diff --git a/Misc/NEWS.d/next/Documentation/2018-09-29-13-40-06.bpo-13407.BRI-_D.rst b/Misc/NEWS.d/next/Documentation/2018-09-29-13-40-06.bpo-13407.BRI-_D.rst
new file mode 100644 (file)
index 0000000..e176693
--- /dev/null
@@ -0,0 +1,2 @@
+Add a note to :mod:`bz2` and :mod:`tarfile` stating that handling of
+multi-stream bzip2 files is not supported.