summaryrefslogtreecommitdiffstats
path: root/Doc/library/netrc.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-12-02 21:13:53 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-12-02 21:13:53 (GMT)
commitee1b01a41b0c1f212588f840a0b79b1b8876cceb (patch)
tree7188423a10613c738cc001a51d996762a6564d26 /Doc/library/netrc.rst
parent61f0a0261f0fbfd0a6b981c370a8808aad00b107 (diff)
downloadcpython-ee1b01a41b0c1f212588f840a0b79b1b8876cceb.zip
cpython-ee1b01a41b0c1f212588f840a0b79b1b8876cceb.tar.gz
cpython-ee1b01a41b0c1f212588f840a0b79b1b8876cceb.tar.bz2
Issue #21818: Fixed references to classes that have names matching with module
names.
Diffstat (limited to 'Doc/library/netrc.rst')
-rw-r--r--Doc/library/netrc.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/netrc.rst b/Doc/library/netrc.rst
index cdc2616..64aa3ac 100644
--- a/Doc/library/netrc.rst
+++ b/Doc/library/netrc.rst
@@ -12,13 +12,13 @@
--------------
-The :class:`netrc` class parses and encapsulates the netrc file format used by
+The :class:`~netrc.netrc` class parses and encapsulates the netrc file format used by
the Unix :program:`ftp` program and other FTP clients.
.. class:: netrc([file])
- A :class:`netrc` instance or subclass instance encapsulates data from a netrc
+ A :class:`~netrc.netrc` instance or subclass instance encapsulates data from a netrc
file. The initialization argument, if present, specifies the file to parse. If
no argument is given, the file :file:`.netrc` in the user's home directory will
be read. Parse errors will raise :exc:`NetrcParseError` with diagnostic
@@ -35,7 +35,7 @@ the Unix :program:`ftp` program and other FTP clients.
.. exception:: NetrcParseError
- Exception raised by the :class:`netrc` class when syntactical errors are
+ Exception raised by the :class:`~netrc.netrc` class when syntactical errors are
encountered in source text. Instances of this exception provide three
interesting attributes: :attr:`msg` is a textual explanation of the error,
:attr:`filename` is the name of the source file, and :attr:`lineno` gives the
@@ -47,7 +47,7 @@ the Unix :program:`ftp` program and other FTP clients.
netrc Objects
-------------
-A :class:`netrc` instance has the following methods:
+A :class:`~netrc.netrc` instance has the following methods:
.. method:: netrc.authenticators(host)
@@ -63,7 +63,7 @@ A :class:`netrc` instance has the following methods:
Dump the class data as a string in the format of a netrc file. (This discards
comments and may reorder the entries.)
-Instances of :class:`netrc` have public instance variables:
+Instances of :class:`~netrc.netrc` have public instance variables:
.. attribute:: netrc.hosts