cpython: a19f47d380d2 (original) (raw)

Mercurial > cpython

changeset 79382:a19f47d380d2

Merge: #16304: Optimizations for BZ2File, and minor bugfix. [#16304]

Nadeem Vawda nadeem.vawda@gmail.com
date Mon, 01 Oct 2012 23:11:35 +0200
parents fb90e2ff95b7(current diff)6d7bf512e0c3(diff)
children 112103a4241a
files
diffstat 1 files changed, 12 insertions(+), 12 deletions(-)[+] [-] Lib/bz2.py 24

line wrap: on

line diff

--- a/Lib/bz2.py +++ b/Lib/bz2.py @@ -159,21 +159,18 @@ class BZ2File(io.BufferedIOBase): raise ValueError("I/O operation on closed file") def _check_can_read(self):

def _check_can_write(self):

def _check_can_seek(self):

@@ -322,10 +319,12 @@ class BZ2File(io.BufferedIOBase): non-negative, no more than size bytes will be read (in which case the line may be incomplete). Returns b'' if already at EOF. """

@@ -343,9 +342,10 @@ class BZ2File(io.BufferedIOBase): further lines will be read once the total size of the lines read so far equals or exceeds size. """