]> granicus.if.org Git - python/commitdiff
Update ftplib.all_errors documentation to match code (#15026)
authorAndrew Scheller <github@loowis.durge.org>
Wed, 11 Sep 2019 14:18:00 +0000 (15:18 +0100)
committerStéphane Wirtel <stephane@wirtel.be>
Wed, 11 Sep 2019 14:18:00 +0000 (16:18 +0200)
The documentation doesn't mention the `EOFError` that https://github.com/python/cpython/blob/master/Lib/ftplib.py#L66 includes

Doc/library/ftplib.rst

index e006d019b837dce90e63c89a67e2320700ddf6dc..7423413d209ae0f67f95907372e1f4dfad136775 100644 (file)
@@ -144,7 +144,7 @@ The module defines the following items:
    The set of all exceptions (as a tuple) that methods of :class:`FTP`
    instances may raise as a result of problems with the FTP connection (as
    opposed to programming errors made by the caller).  This set includes the
-   four exceptions listed above as well as :exc:`OSError`.
+   four exceptions listed above as well as :exc:`OSError` and :exc:`EOFError`.
 
 
 .. seealso::