diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-06-15 00:24:34 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-06-15 00:24:34 (GMT) |
commit | 71e86367e090a0d0595a4221c8334d87979488e6 (patch) | |
tree | 2baefb51a157a0a74a3a871b8dda2d9c7f7332c7 | |
parent | cefa9172a237a56c67e8c9b302c84c1c3dffb871 (diff) | |
download | cpython-71e86367e090a0d0595a4221c8334d87979488e6.zip cpython-71e86367e090a0d0595a4221c8334d87979488e6.tar.gz cpython-71e86367e090a0d0595a4221c8334d87979488e6.tar.bz2 |
Issue #27311: Fix ZipFile.writestr data argument name.
Patch by John Hagen.
-rw-r--r-- | Doc/library/zipfile.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index b421ea5..a773769 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -343,9 +343,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. |