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.
1 parent cefa917 commit 71e8636Copy full SHA for 71e8636
1 file changed
Doc/library/zipfile.rst
@@ -343,9 +343,9 @@ ZipFile Objects
343
If ``arcname`` (or ``filename``, if ``arcname`` is not given) contains a null
344
byte, the name of the file in the archive will be truncated at the null byte.
345
346
-.. method:: ZipFile.writestr(zinfo_or_arcname, bytes[, compress_type])
+.. method:: ZipFile.writestr(zinfo_or_arcname, data[, compress_type])
347
348
- 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
349
name it will be given in the archive, or a :class:`ZipInfo` instance. If it's
350
an instance, at least the filename, date, and time must be given. If it's a
351
name, the date and time is set to the current date and time.
0 commit comments