Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a8b5ca

Browse files
committed
Issue #27311: Merge zipfile doc from 3.5
2 parents e80b658 + 71e8636 commit 9a8b5ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/zipfile.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,9 @@ ZipFile Objects
348348
If ``arcname`` (or ``filename``, if ``arcname`` is not given) contains a null
349349
byte, the name of the file in the archive will be truncated at the null byte.
350350

351-
.. method:: ZipFile.writestr(zinfo_or_arcname, bytes[, compress_type])
351+
.. method:: ZipFile.writestr(zinfo_or_arcname, data[, compress_type])
352352

353-
Write the string *bytes* to the archive; *zinfo_or_arcname* is either the file
353+
Write the string *data* to the archive; *zinfo_or_arcname* is either the file
354354
name it will be given in the archive, or a :class:`ZipInfo` instance. If it's
355355
an instance, at least the filename, date, and time must be given. If it's a
356356
name, the date and time is set to the current date and time.

0 commit comments

Comments
 (0)