Skip to content

Commit

Permalink
ssl: Use "from tls import *" to be compatible with axtls.
Browse files Browse the repository at this point in the history
axtls doesn't define all the CERT_xxx constants, nor the MBEDTLS_VERSION
constant.

This change means that `tls.SSLContext` is imported into the module, but
that's subsequently overridden by the class definition in this module.

Signed-off-by: Damien George <[email protected]>
  • Loading branch information
dpgeorge committed Mar 28, 2024
1 parent 661efa4 commit 974e137
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions python-stdlib/ssl/ssl.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
import tls
from tls import (
CERT_NONE,
CERT_OPTIONAL,
CERT_REQUIRED,
MBEDTLS_VERSION,
PROTOCOL_TLS_CLIENT,
PROTOCOL_TLS_SERVER,
)
from tls import *


class SSLContext:
Expand Down

0 comments on commit 974e137

Please sign in to comment.