Shreyan Avigyan <shreyan.avig...@gmail.com> added the comment:
The documentation has been corrected in 3.9. Prior to 3.9 the header was bz2.open(filename, mode='r' ...). Now in 3.9 or later the header is bz2.open(filename, mode='rb' ...). ---------- nosy: +shreyanavigyan _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43873> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com