Home | History | Annotate | Download | only in python2.7

Lines Matching defs:comment

211     # Check to see if this is ZIP file with no archive comment (the
222 # the signature is correct and there's no comment, unpack structure
226 # Append a blank comment and record start offset
234 # comment. Search the end of the file for the "end of central directory"
235 # record signature. The comment is the last item in the ZIP file and may be
237 # number does not appear in the comment.
250 comment = data[start+sizeEndCentDir:start+sizeEndCentDir+commentSize]
251 endrec.append(comment)
270 'comment',
309 self.comment = "" # Comment for each file
812 self._comment = endrec[_ECD_COMMENT] # archive comment
842 x.comment = fp.read(centdir[_CD_COMMENT_LENGTH])
914 def comment(self):
915 """The comment text associated with the ZIP file."""
918 @comment.setter
919 def comment(self, comment):
920 # check for valid comment length
921 if len(comment) >= ZIP_MAX_COMMENT:
923 print('Archive comment is too long; truncating to %d bytes'
925 comment = comment[:ZIP_MAX_COMMENT]
926 self._comment = comment
1299 len(filename), len(extra_data), len(zinfo.comment),
1308 len(zinfo.filename), len(extra_data), len(zinfo.comment),
1315 self.fp.write(zinfo.comment)