[Python-checkins] cpython: Make BZ2File.__init__()'s fileobj argument keyword-only.
nadeem.vawda
python-checkins at python.org
Sat Feb 4 14:17:08 CET 2012
http://hg.python.org/cpython/rev/6f7d9455d3bb
changeset: 74756:6f7d9455d3bb
user: Nadeem Vawda <nadeem.vawda at gmail.com>
date: Sat Feb 04 13:58:07 2012 +0200
summary:
Make BZ2File.__init__()'s fileobj argument keyword-only.
files:
Doc/library/bz2.rst | 2 +-
Lib/bz2.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/bz2.rst b/Doc/library/bz2.rst
--- a/Doc/library/bz2.rst
+++ b/Doc/library/bz2.rst
@@ -29,7 +29,7 @@
(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.
diff --git a/Lib/bz2.py b/Lib/bz2.py
--- a/Lib/bz2.py
+++ b/Lib/bz2.py
@@ -40,7 +40,7 @@
"""
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list