homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lars.gustaebel
Recipients flox, lars.gustaebel, vstinner
Date 2010年06月12日.10:33:10
SpamBayes Score 0.091203645
Marked as misclassified No
Message-id <1276338792.46.0.358387918153.issue8978@psf.upfronthosting.co.za>
In-reply-to
Content
If you pass an explicit mode, the error message is more or less what you want:
>>> tarfile.open("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.
History
Date User Action Args
2010年06月12日 10:33:12lars.gustaebelsetrecipients: + lars.gustaebel, vstinner, flox
2010年06月12日 10:33:12lars.gustaebelsetmessageid: <1276338792.46.0.358387918153.issue8978@psf.upfronthosting.co.za>
2010年06月12日 10:33:10lars.gustaebellinkissue8978 messages
2010年06月12日 10:33:10lars.gustaebelcreate

AltStyle によって変換されたページ (->オリジナル) /