summaryrefslogtreecommitdiff
path: root/Lib/bz2.py
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2012-02-04 13:58:07 +0200
committerNadeem Vawda <nadeem.vawda@gmail.com>2012-02-04 13:58:07 +0200
commit923f4ecf4294a07a3a140cb98ef01e5ad0267b10 (patch)
treeef1011e860ad031b0e36eb574218e1fb8faa2a05 /Lib/bz2.py
parentf79d5801b76bdb7cdd1f9c8ea93318954a7430e0 (diff)
downloadcpython-923f4ecf4294a07a3a140cb98ef01e5ad0267b10.tar.gz
Make BZ2File.__init__()'s fileobj argument keyword-only.
Diffstat (limited to 'Lib/bz2.py')
-rw-r--r--Lib/bz2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/bz2.py b/Lib/bz2.py
index 5c228f95e5..7e1a7e29c6 100644
--- a/Lib/bz2.py
+++ b/Lib/bz2.py
@@ -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