Skip to content

Commit

Permalink
Fix unconditional openssl import in DTLS (#2779)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentVanlaer authored Sep 1, 2023
1 parent ae0dc99 commit d3255a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trio/_dtls.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
from weakref import ReferenceType, WeakValueDictionary

import attr
from OpenSSL import SSL

import trio

Expand All @@ -39,6 +38,8 @@
if TYPE_CHECKING:
from types import TracebackType

# See DTLSEndpoint.__init__ for why this is imported here
from OpenSSL import SSL
from OpenSSL.SSL import Context
from typing_extensions import Self, TypeAlias

Expand Down

0 comments on commit d3255a0

Please sign in to comment.