[pypy-commit] pypy cffi-libs: fix mro of SSLError
mattip
pypy.commits at gmail.com
Tue May 21 00:53:44 EDT 2019
Author: Matti Picus <matti.picus at 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):
More information about the pypy-commit
mailing list