Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e80b658 + 71e8636 commit 9a8b5caCopy full SHA for 9a8b5ca
1 file changed
Doc/library/zipfile.rst
@@ -348,9 +348,9 @@ ZipFile Objects
348
If ``arcname`` (or ``filename``, if ``arcname`` is not given) contains a null
349
byte, the name of the file in the archive will be truncated at the null byte.
350
351
-.. method:: ZipFile.writestr(zinfo_or_arcname, bytes[, compress_type])
+.. method:: ZipFile.writestr(zinfo_or_arcname, data[, compress_type])
352
353
- Write the string *bytes* to the archive; *zinfo_or_arcname* is either the file
+ Write the string *data* to the archive; *zinfo_or_arcname* is either the file
354
name it will be given in the archive, or a :class:`ZipInfo` instance. If it's
355
an instance, at least the filename, date, and time must be given. If it's a
356
name, the date and time is set to the current date and time.
0 commit comments