Message411178
I think you misunderstood. foo.txt is a file, which actually exists but contains non-TAR data. E.g. try:
base64 /dev/urandom | head -c $(( 2048 )) > foo.txt
python3 -c 'import tarfile; print(list(tarfile.open("foo.txt")))'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.9/tarfile.py", line 1616, in open
raise ReadError("file could not be opened successfully")
tarfile.ReadError: file could not be opened successfully
python3 -c 'import tarfile; print(list(tarfile.open("foo.txt", ignore_zeros=True)))'
[] |
|
Date |
User |
Action |
Args |
2022-01-21 19:57:26 | mxmlnkn | set | recipients:
+ mxmlnkn, iritkatriel |
2022-01-21 19:57:26 | mxmlnkn | set | messageid: <1642795046.77.0.779816080746.issue40757@roundup.psfhosted.org> |
2022-01-21 19:57:26 | mxmlnkn | link | issue40757 messages |
2022-01-21 19:57:26 | mxmlnkn | create | |
|