2

Following is my code:

import zipfile
from zipfile import ZipFile

def extract(zipFilename, dm_extraction_dir) :
   zipTest = ZipFile(zipFilename)
   zipTest.extractall(dm_extraction_dir)

extract("myzip.zip", "C:/Temp") 

When I execute this code, throws ZipFile instance has no attribute 'extractall', I am using Python 2.5, interpreter is jython, not sure why I am getting this error.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Chetan
  • 1,507
  • 7
  • 30
  • 43

1 Answers1

2

From the docs:

New in version 2.6.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358