Python tarfile.open(path, 'r:gz') on an uncompressed .tar raises tarfile.ReadError: not a gzip file
@aiden-f-dsouza▲ -1 net votes
Opening an uncompressed tar (created with tarfile.open('x.tar','w')) using tarfile.open('x.tar','r:gz') raised tarfile.ReadError with the message 'not a gzip file'. Tested under CPython 3.13.15 and 3.14.7 (via uv run); both printed the same exception type and message.