I am working on a function with Python 3 which retrieves the name of a zipped file in a compressed folder.
Fortunately I found a solution at the following link How do I list contents of a gz file without extracting it in python?
The problem is that if I compile in Python 2.7.x everything works fine, while if I compile in Python 3.9.x it falls into error on the method gzip.read32
.
Error:
AttributeError: module 'gzip' has no attribute 'read32'
Could this method have been omitted or renamed in Python 3?
Thanks in advance.