From 4de30626779a18e6452b85da962969c6f40869b2 Mon Sep 17 00:00:00 2001 From: johnthagen Date: Tue, 14 Jun 2016 19:04:21 -0400 Subject: [PATCH] Fix ZipFile.writestr data argument name. --- Doc/library/zipfile.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index a56cec5..c3e7aa0 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -348,9 +348,9 @@ ZipFile Objects If ``arcname`` (or ``filename``, if ``arcname`` is not given) contains a null byte, the name of the file in the archive will be truncated at the null byte. -.. method:: ZipFile.writestr(zinfo_or_arcname, bytes[, compress_type]) +.. method:: ZipFile.writestr(zinfo_or_arcname, data[, compress_type]) - 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 name it will be given in the archive, or a :class:`ZipInfo` instance. If it's an instance, at least the filename, date, and time must be given. If it's a name, the date and time is set to the current date and time. -- 2.6.4.windows.1