Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 635996 Details for
Bug 720962
app-emulation/ganeti-2.15.2-r9: incompatible with dev-python/pyopenssl-19.1.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
ganeti-2.15.2-pyopenssl.patch (text/plain), 948 bytes, created by
Austin English
on 2020-05-04 16:49:58 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Austin English
Created:
2020-05-04 16:49:58 UTC
Size:
948 bytes
patch
obsolete
>--- a/lib/http/__init__.py >+++ b/lib/http/__init__.py >@@ -88,6 +88,12 @@ > # send/receive quantum > SOCK_BUF_SIZE = 32768 > >+# OpenSSL.SSL.ConnectionType was deprecated in pyopenssl-19.1.0: >+try: >+ ssl_conn_type = OpenSSL.SSL.Connection >+except AttributeError: >+ ssl_conn_type = OpenSSL.SSL.ConnectionType >+ > > class HttpError(Exception): > """Internal exception for HTTP errors. >@@ -377,7 +383,7 @@ > > # Handshake is only supported by SSL sockets > if (op == SOCKOP_HANDSHAKE and >- not isinstance(sock, OpenSSL.SSL.ConnectionType)): >+ not isinstance(sock, ssl_conn_type)): > return > > # No override by default >@@ -414,7 +420,7 @@ > return sock.recv(arg1) > > elif op == SOCKOP_SHUTDOWN: >- if isinstance(sock, OpenSSL.SSL.ConnectionType): >+ if isinstance(sock, ssl_conn_type): > # PyOpenSSL's shutdown() doesn't take arguments > return sock.shutdown() > else:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 720962
: 635996