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

Skip to content

Commit 71e8636

Browse files
committed
Issue #27311: Fix ZipFile.writestr data argument name.
Patch by John Hagen.
1 parent cefa917 commit 71e8636

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
@@ -343,9 +343,9 @@ ZipFile Objects
343343
If ``arcname`` (or ``filename``, if ``arcname`` is not given) contains a null
344344
byte, the name of the file in the archive will be truncated at the null byte.
345345

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

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

0 commit comments

Comments
 (0)