'Python zipfile compress_size returns 'int' object is not callable
I am trying to get the compressed size of a file with Python and zipfile
zip = zipfile.ZipFile('test.zip')
namelist = zip.namelist()
for fn in namelist:
print fn
print zip.getinfo(fn).compress_size()
I get the error
TypeError: 'int' object is not callable
What is the reason for that?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
