[issue44841] ZipInfo crashes on filemode
Gabor Rakosy
report at bugs.python.org
Tue Sep 28 06:15:16 EDT 2021
Gabor Rakosy <g.rakosy at graafschapcollege.nl> added the comment:
Like Ronald Oussoren wrote "ZipInfo does not have a filemode attribute, that's why it is not in ZipInfo.__slots__."
----------------
import zipfile
file_zip = zipfile.ZipFile("test-one-dir.zip", mode='r')
for info in file_zip.infolist():
print(info)
---------------
In the print, it shows the option 'filemode'. And that option is not accessible. That's the reason why i made this issue.
----------
Added file: https://bugs.python.org/file50309/test-zip.zip
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44841>
_______________________________________
More information about the Python-bugs-list
mailing list