summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-10-06 15:02:05 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-10-06 15:02:05 (GMT)
commitafbf90c9937ff70ca817ef9f14526353ab5bdb32 (patch)
tree908006629afe144fdec6fb7d7e5c3b7ca864386b /Doc
parentcbd449b4160cfc7bb62df6f81a6cc4ec39c943aa (diff)
downloadcpython-afbf90c9937ff70ca817ef9f14526353ab5bdb32.zip
cpython-afbf90c9937ff70ca817ef9f14526353ab5bdb32.tar.gz
cpython-afbf90c9937ff70ca817ef9f14526353ab5bdb32.tar.bz2
Issue #16025: Minor corrections to the zipfile documentation.
Patch by Serhiy Storchaka.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/zipfile.rst18
1 files changed, 9 insertions, 9 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst
index 48edf1f..264cd47 100644
--- a/Doc/library/zipfile.rst
+++ b/Doc/library/zipfile.rst
@@ -61,7 +61,7 @@ The module defines the following items:
.. class:: ZipInfo(filename='NoName', date_time=(1980,1,1,0,0,0))
Class used to represent information about a member of an archive. Instances
- of this class are returned by the :meth:`getinfo` and :meth:`infolist`
+ of this class are returned by the :meth:`.getinfo` and :meth:`.infolist`
methods of :class:`ZipFile` objects. Most users of the :mod:`zipfile` module
will not need to create these, but only use those created by this
module. *filename* should be the full name of the archive member, and
@@ -87,7 +87,7 @@ The module defines the following items:
.. data:: ZIP_DEFLATED
The numeric constant for the usual ZIP compression method. This requires the
- zlib module. No other compression methods are currently supported.
+ :mod:`zlib` module. No other compression methods are currently supported.
.. seealso::
@@ -130,7 +130,7 @@ ZipFile Objects
these extensions.
If the file is created with mode ``'a'`` or ``'w'`` and then
- :meth:`close`\ d without adding any files to the archive, the appropriate
+ :meth:`closed <close>` without adding any files to the archive, the appropriate
ZIP structures for an empty archive will be written to the file.
ZipFile is also a context manager and therefore supports the
@@ -179,7 +179,7 @@ ZipFile Objects
*mode* parameter, if included, must be one of the following: ``'r'`` (the
default), ``'U'``, or ``'rU'``. Choosing ``'U'`` or ``'rU'`` will enable
:term:`universal newlines` support in the read-only object. *pwd* is the
- password used for encrypted files. Calling :meth:`open` on a closed
+ password used for encrypted files. Calling :meth:`.open` on a closed
ZipFile will raise a :exc:`RuntimeError`.
.. note::
@@ -201,7 +201,7 @@ ZipFile Objects
.. note::
- The :meth:`open`, :meth:`read` and :meth:`extract` methods can take a filename
+ The :meth:`.open`, :meth:`read` and :meth:`extract` methods can take a filename
or a :class:`ZipInfo` object. You will appreciate this when trying to read a
ZIP file that contains members with duplicate names.
@@ -307,7 +307,7 @@ ZipFile Objects
:class:`ZipInfo` constructor sets this member to :const:`ZIP_STORED`.
.. versionchanged:: 3.2
- The *compression_type* argument.
+ The *compress_type* argument.
The following data attributes are also available:
@@ -323,7 +323,7 @@ The following data attributes are also available:
The comment text associated with the ZIP file. If assigning a comment to a
:class:`ZipFile` instance created with mode 'a' or 'w', this should be a
string no longer than 65535 bytes. Comments longer than this will be
- truncated in the written archive when :meth:`ZipFile.close` is called.
+ truncated in the written archive when :meth:`close` is called.
.. _pyzipfile-objects:
@@ -379,8 +379,8 @@ The :class:`PyZipFile` constructor takes the same parameters as the
ZipInfo Objects
---------------
-Instances of the :class:`ZipInfo` class are returned by the :meth:`getinfo` and
-:meth:`infolist` methods of :class:`ZipFile` objects. Each object stores
+Instances of the :class:`ZipInfo` class are returned by the :meth:`.getinfo` and
+:meth:`.infolist` methods of :class:`ZipFile` objects. Each object stores
information about a single member of the ZIP archive.
Instances have the following attributes: