mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
Make BZ2File.__init__()'s fileobj argument keyword-only.
This commit is contained in:
parent
cac8909d0c
commit
54d8144bb0
@ -29,7 +29,7 @@ All of the classes in this module may safely be accessed from multiple threads.
|
||||
(De)compression of files
|
||||
------------------------
|
||||
|
||||
.. class:: BZ2File(filename=None, mode='r', buffering=None, compresslevel=9, fileobj=None)
|
||||
.. class:: BZ2File(filename=None, mode='r', buffering=None, compresslevel=9, \*, fileobj=None)
|
||||
|
||||
Open a bzip2-compressed file.
|
||||
|
||||
|
@ -40,7 +40,7 @@ class BZ2File(io.BufferedIOBase):
|
||||
"""
|
||||
|
||||
def __init__(self, filename=None, mode="r", buffering=None,
|
||||
compresslevel=9, fileobj=None):
|
||||
compresslevel=9, *, fileobj=None):
|
||||
"""Open a bzip2-compressed file.
|
||||
|
||||
If filename is given, open the named file. Otherwise, operate on
|
||||
|
Loading…
Reference in New Issue
Block a user