mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue #28225: bz2 module now supports pathlib
Initial patch by Ethan Furman.
This commit is contained in:
parent
03020cfa97
commit
8bdd4480c4
4 changed files with 25 additions and 7 deletions
|
@ -61,6 +61,9 @@ All of the classes in this module may safely be accessed from multiple threads.
|
|||
.. versionchanged:: 3.4
|
||||
The ``'x'`` (exclusive creation) mode was added.
|
||||
|
||||
.. versionchanged:: 3.6
|
||||
Accepts a :term:`path-like object`.
|
||||
|
||||
|
||||
.. class:: BZ2File(filename, mode='r', buffering=None, compresslevel=9)
|
||||
|
||||
|
@ -128,6 +131,9 @@ All of the classes in this module may safely be accessed from multiple threads.
|
|||
The :meth:`~io.BufferedIOBase.read` method now accepts an argument of
|
||||
``None``.
|
||||
|
||||
.. versionchanged:: 3.6
|
||||
Accepts a :term:`path-like object`.
|
||||
|
||||
|
||||
Incremental (de)compression
|
||||
---------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue