From bb746ba6eda8bdb4f1c1f403e732158d450b7182 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Tue, 30 Jul 2019 19:45:00 +0100 Subject: [PATCH] Update ftplib.all_errors documentation to match code The documentation doesn't mention the `EOFError` that https://github.com/python/cpython/blob/master/Lib/ftplib.py#L66 includes --- Doc/library/ftplib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/ftplib.rst b/Doc/library/ftplib.rst index e006d019b837dc..7423413d209ae0 100644 --- a/Doc/library/ftplib.rst +++ b/Doc/library/ftplib.rst @@ -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::