def countZipFileEntries(filename):
 warnings.warn('countZipFileEntries is deprecated.', DeprecationWarning, 2)
 zf = zipfile.ZipFile(filename)
 return len(zf.namelist())

def countZipFileEntries ( filename ) : warnings . warn ( 'countZipFileEntries is deprecated.' , DeprecationWarning , 2 ) zf = zipfile . ZipFile ( filename ) return len ( zf . namelist ( ) )
count the number of entries in a zip archive .