[pypy-issue] Issue #3119: pypy3.6-7.2 sets `socket.sslerror` but that's a Python 2 attribute (pypy/pypy)
issues-reply at bitbucket.org
Mon Nov 18 16:14:40 EST 2019
New issue 3119: pypy3.6-7.2 sets `socket.sslerror` but that's a Python 2 attribute
When [_cffi_ssl._stdssl.error](https://bitbucket.org/pypy/pypy/src/dde73a3a316b7b5228248addd7676d017d82f233/lib_pypy/_cffi_ssl/_stdssl/error.py?at=py3.6#lines-31) is imported, it unconditionally assigns a value to `socket.sslerror`. Under Python 2, this is expected, but `socket.sslerror` was [removed in Python 3.0](https://github.com/python/cpython/commit/86bc33cb7c248ede88ff9bd82775aab818f6224f#diff-1f037cd6b68ccd47326d99aeb7ae2c6a).
This attribute was not present in pypy3.6-7.1.
Having this attribute present on Python 3.6 can slightly confuse code that's trying to detect what sort of errors to catch.
More information about the pypy-issue