Message235609
No need to use libmagic. tarfile.TarFile.gzopen() should fail if the file is not gzipped tar file. There CLI tests in Lib/test/test_tarfile.py. New test should create tar file with file name that ends with the '.gz' extension and check that it can be open and read with gzopen(). |
|
Date |
User |
Action |
Args |
2015-02-09 14:06:06 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, berker.peksag, wdv4758h |
2015-02-09 14:06:06 | serhiy.storchaka | set | messageid: <1423490766.51.0.850282651169.issue23421@psf.upfronthosting.co.za> |
2015-02-09 14:06:06 | serhiy.storchaka | link | issue23421 messages |
2015-02-09 14:06:06 | serhiy.storchaka | create | |
|