ZipFile.extract(member[, path[, pwd]]) is a new functionality introduced in Python 2.6. For some reason I need to implement the ZipFile.extract in Python 2.4.3(2.4.3 cannot handle ZipFile but just some attributes).
I’m thinking of explicitly import zipfile.py in the python script in which I need to use the extract function.
My consideration is that I don’t know if there is any new syntax or new functionality in the zipfile.py that is incompatible with the Python 2.4.3 standards.
Is there another approach for this?
Thank you in advance!
ZipFile.extract()can be simulated by usingZipFile.open(),open(), andshutil.copyfileobj(). The functionality could even be monkey-patched intoZipFilebased on the version of Python in use.