Author lars.gustaebel
Recipients flox, lars.gustaebel, vstinner
Date 2010-06-12.10:33:10
SpamBayes Score 0.0912036
Marked as misclassified No
Message-id <>
If you pass an explicit mode, the error message is more or less what you want:

>>>"uga.tgz", mode="r:gz")
tarfile.CompressionError: gzip module is not available

The way mode="r" detects which compression format is used is to open the file with each open method (i.e. taropen, gzopen, bz2open) until one of them succeeds. If none of them matches it is impossible to say what the reason was.

As this would require more than just a simple one-line change, 2.7 is out of the question. But I see what I can do for 3.2.
Date User Action Args
2010-06-12 10:33:12lars.gustaebelsetrecipients: + lars.gustaebel, vstinner, flox
2010-06-12 10:33:12lars.gustaebelsetmessageid: <>
2010-06-12 10:33:10lars.gustaebellinkissue8978 messages
2010-06-12 10:33:10lars.gustaebelcreate