Lines Matching defs:zipfile
15 import zipfile
306 """Changes a path into zipfile format.
326 # zipfile paths are always posix-style. They also have the drive
332 # zipfile also always appends a slash to a directory name.
346 parser = optparse.OptionParser(usage='usage: zip [Options] zipfile list')
393 zip_stream = zipfile.ZipFile(dest_zip, 'r')
398 # zipfile; the best you can do is rewrite the archive.
399 # Iterate through the zipfile to maintain file order.
424 zip_stream = zipfile.ZipFile(dest_zip, write_mode, zipfile.ZIP_DEFLATED)
426 if isinstance(file_info_or_zip_path, zipfile.ZipInfo):
438 zip_info = zipfile.ZipInfo()
459 if (zip_info.compress_type == zipfile.ZIP_STORED or
462 elif zip_info.compress_type == zipfile.ZIP_DEFLATED: