From e3ee4ff098047fe97a17bca505b16a61265f64c7 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Tue, 10 May 2011 17:23:14 +0200 Subject: [PATCH] Small update wrt.SSLError --- pep-3151.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pep-3151.txt b/pep-3151.txt index dd2e47b0e..fd2090551 100644 --- a/pep-3151.txt +++ b/pep-3151.txt @@ -551,8 +551,8 @@ This PEP also ignores ``SSLError``, which is raised by the ``ssl`` module in order to propagate errors signalled by the ``OpenSSL`` library. Ideally, ``SSLError`` would benefit from a similar but separate treatment since it defines its own constants for error types (``ssl.SSL_ERROR_WANT_READ``, -etc.). However, ``SSLError`` should be replaced with ``TimeoutError`` in -the case it signals a socket timeout. +etc.). In Python 3.2, ``SSLError`` is already replaced with ``socket.timeout`` +when it signals a socket timeout (see `issue 10272 `_). Endly, the fate of ``socket.gaierror`` and ``socket.herror`` is not settled. While they would deserve less cryptic names, this can be handled separately