class_docstr: A file object providing transparent bzip2 (de)compression.
  
  A BZ2File can act as a wrapper for an existing file object, or refer
  directly to a named file on disk.
  
  Note that BZ2File provides a *binary* file interface - data read is
  returned as bytes, and data to be written should be given as bytes.
class_docstr_tok: ["A","file","object","providing","transparent","bzip2","(","de",")","compression",".","A","BZ2File","can","act","as","a","wrapper","for","an","existing","file","object",",","or","refer","directly","to","a","named","file","on","disk",".","Note","that","BZ2File","provides","a","*","binary","*","file","interface","-","data","read","is","returned","as","bytes",",","and","data","to","be","written","should","be","given","as","bytes","."]
docstr: Read a line of uncompressed bytes from the file.
  
  The terminating newline (if present) is retained. If size is
  non-negative, no more than size bytes will be read (in which
  case the line may be incomplete). Returns b'' if already at EOF.
docstr_tok: ["Read","a","line","of","uncompressed","bytes","from","the","file",".","The","terminating","newline","(","if","present",")","is","retained",".","If","size","is","non-negative",",","no","more","than","size","bytes","will","be","read","(","in","which","case","the","line","may","be","incomplete",")",".","Returns","b","''","if","already","at","EOF","."]
code: def readline(self, size=-1):
      """Read a line of uncompressed bytes from the file.
  
      The terminating newline (if present) is retained. If size is
      non-negative, no more than size bytes will be read (in which
      case the line may be incomplete). Returns b'' if already at EOF.
      """
      if not isinstance(size, int):
          if not hasattr(size, "__index__"):
              raise TypeError("Integer argument expected")
          size = size.__index__()
      self._check_can_read()
      return self._buffer.readline(size)
  
imports: from builtins import open
  import io
  import os
  import _compression
  from _bz2 import BZ2Compressor, BZ2Decompressor
label_desc: Use image node_id 12 for calling the BZ2File obj's underlying member method code with example usage: obj.readline(size) and returns: self