Skip to content

Commit

Permalink
Fix unconditional openssl import in DTLS
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentVanlaer committed Aug 31, 2023
1 parent e97bcb6 commit d93f678
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 d93f678

Please sign in to comment.