[issue1625] bz2.BZ2File doesn't support multiple streams

2011-09-23 Thread ozan caglayan
ozan caglayan added the comment: Attached patch is a revised version of bz2ms.patch against Python 2.7.2. The patch is tested using tarfile and bz2 modules. It also passes the included tests correctly. It also imports a missing class from BytesIO to fix the tests. It's up to you to

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-09-22 Thread ozan caglayan
ozan caglayan added the comment: With the current tip everything works correctly. I think it's because of the complete rewrite of the bz2 module with python and the refactoring of _bz2.so. -- ___ Python tracker <http://bugs.python.org/i

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-09-22 Thread ozan caglayan
ozan caglayan added the comment: I ported the bz2ms.patch to Python 2.7.2 and it works correctly within the bz2 module. But when you open a multistream (tar)bz2 with the tarfile module, even the tarfile uses the BZ2File() class, there exists unextracted missing files. I'll now try wit