]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #25689: Fix language in ftplib and nntplib docs
authorMartin Panter <vadmium+py@gmail.com>
Sat, 21 Nov 2015 22:03:08 +0000 (22:03 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sat, 21 Nov 2015 22:03:08 +0000 (22:03 +0000)
Original patch by Silent Ghost.

Doc/library/ftplib.rst
Doc/library/nntplib.rst

index 3d1f783a5ccd157bc579ab40ce510ce27d77050b..f06e678ecd1e420f04efcd80c8db26c54bb41d85 100644 (file)
@@ -52,8 +52,7 @@ The module defines the following items:
    will be used). *source_address* is a 2-tuple ``(host, port)`` for the socket
    to bind to as its source address before connecting.
 
-   :class:`FTP` class supports the :keyword:`with` statement. Here is a sample
-   on how using it:
+   The :class:`FTP` class supports the :keyword:`with` statement, e.g.:
 
     >>> from ftplib import FTP
     >>> with FTP("ftp1.at.proftpd.org") as ftp:
index 479796503b148ec639328ebc6d412281a219f73d..9fb1b4594d0523a6cfd5b98975244872965eefd5 100644 (file)
@@ -69,9 +69,9 @@ The module itself defines the following classes:
    connecting to an NNTP server on the local machine and intend to call
    reader-specific commands, such as ``group``.  If you get unexpected
    :exc:`NNTPPermanentError`\ s, you might need to set *readermode*.
-   :class:`NNTP` class supports the :keyword:`with` statement to
+   The :class:`NNTP` class supports the :keyword:`with` statement to
    unconditionally consume :exc:`OSError` exceptions and to close the NNTP
-   connection when done. Here is a sample on how using it:
+   connection when done, e.g.:
 
     >>> from nntplib import NNTP
     >>> with NNTP('news.gmane.org') as n: