Patch #1535500: fix segfault in BZ2File.writelines and make sure it
raises the correct exceptions.
3 files changed