#NEWLINE# def unpack_zipfile( filename ) : #NEWLINE# #INDENT# 'Unpack a zipfile, using the names in the zip.' #NEWLINE# with open ( filename , 'rb' ) as fzip : #NEWLINE# #INDENT# z = zipfile . ZipFile ( fzip ) #NEWLINE# for name in z . namelist ( ) : #NEWLINE# #INDENT# print ( '      extracting {}' . format ( name ) ) #NEWLINE# ensure_dirs ( name ) #NEWLINE# z . extract ( name )