[ python-Bugs-1013882 ] tarfile.open with mode w|bz2

SourceForge.net noreply at sourceforge.net
Sun Aug 22 19:32:29 CEST 2004


Bugs item #1013882, was opened at 2004-08-22 19:32
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1013882&group_id=5470

Category: Extension Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Felix Wiemann (felixwiemann)
Assigned to: Nobody/Anonymous (nobody)
Summary: tarfile.open with mode w|bz2

Initial Comment:
tarfile.open with mode='w|bz2' only creates empty
files. How to reproduce:

1. Create a file 'test' with some random content.

2. Execute the following Python code:

import tarfile
gz = tarfile.open('test.tar.gz', 'w|gz')
gz.add('test')
gz.close()
bz2 = tarfile.open('test.tar.bz2', 'w|bz2')
bz2.add('test')
bz2.close()

3. Look at test.tar.*

test.tar.gz has been created correctly, but
test.tar.bz2 is empty (0 bytes).

Reproducible with both Python 2.3.3 and Python 2.4a2.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1013882&group_id=5470


More information about the Python-bugs-list mailing list