commit | 54d8144bb018979ad1fd6178554cc9c600b5d8a5 | [log] [tgz] |
---|---|---|
author | Nadeem Vawda <nadeem.vawda@gmail.com> | Sat Feb 04 13:58:07 2012 +0200 |
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | Sat Feb 04 13:58:07 2012 +0200 |
tree | 864985de1a5b12dfcecf08c539e98a52bee0c603 | |
parent | cac8909d0cfe0f52fd0a0409ca58d46b34e58962 [diff] |
Make BZ2File.__init__()'s fileobj argument keyword-only.
diff --git a/Lib/bz2.py b/Lib/bz2.py index 5c228f9..7e1a7e2 100644 --- 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