mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Issue #27311: Merge zipfile doc from 3.5
This commit is contained in:
commit
9a8b5ca2d7
1 changed files with 2 additions and 2 deletions
|
@ -348,9 +348,9 @@ ZipFile Objects
|
||||||
If ``arcname`` (or ``filename``, if ``arcname`` is not given) contains a null
|
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.
|
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
|
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
|
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.
|
name, the date and time is set to the current date and time.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue