bz2.BZ2File.close

BZ2File.close() → None or (perhaps) an integer

Close the file. Sets data attribute .closed to true. A closed file cannot be used for further I/O operations. close() may be called more than once without error.