Author: Matti Picus <matti.pi...@gmail.com> Branch: cffi-libs Changeset: r96651:7bd108e790be Date: 2019-05-21 07:53 +0300 http://bitbucket.org/pypy/pypy/changeset/7bd108e790be/
Log: fix mro of SSLError diff --git a/lib_pypy/_cffi_ssl/_stdssl/error.py b/lib_pypy/_cffi_ssl/_stdssl/error.py --- a/lib_pypy/_cffi_ssl/_stdssl/error.py +++ b/lib_pypy/_cffi_ssl/_stdssl/error.py @@ -1,6 +1,7 @@ import sys import os import traceback +import socket from _pypy_openssl import ffi from _pypy_openssl import lib @@ -20,7 +21,7 @@ SSL_ERROR_NO_SOCKET = 9 # socket has been GC'd SSL_ERROR_INVALID_ERROR_CODE = 10 -class SSLError(OSError): +class SSLError(socket.error): """ An error occurred in the SSL implementation. """ def __str__(self): if self.strerror and isinstance(self.strerror, str): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit