From 4290066994d423bbf51cbf45a69300dac27361f0 Mon Sep 17 00:00:00 2001 From: A5rocks Date: Thu, 2 Jan 2025 10:47:12 +0900 Subject: [PATCH] Polish off #670 --- newsfragments/670.bugfix.rst | 1 + src/trustme/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 newsfragments/670.bugfix.rst diff --git a/newsfragments/670.bugfix.rst b/newsfragments/670.bugfix.rst new file mode 100644 index 0000000..1236380 --- /dev/null +++ b/newsfragments/670.bugfix.rst @@ -0,0 +1 @@ +Update from deprecated pyOpenSSL APIs to non-deprecated cryptography APIs. diff --git a/src/trustme/__init__.py b/src/trustme/__init__.py index 6f3cc00..1040892 100644 --- a/src/trustme/__init__.py +++ b/src/trustme/__init__.py @@ -8,7 +8,7 @@ from contextlib import contextmanager from enum import Enum from tempfile import NamedTemporaryFile -from typing import TYPE_CHECKING, Generator, List, Optional, Union, cast +from typing import TYPE_CHECKING, Generator, List, Optional, Union import idna from cryptography import x509