From 669969ea7afa8a5f5f35a784a50acef9bea3952a Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 13 Feb 2023 13:01:47 +0100 Subject: Fix CI (#1185) * Reformat code using black 23.x * fix compat with tox 4 --- src/OpenSSL/SSL.py | 1 - src/OpenSSL/crypto.py | 2 -- 2 files changed, 3 deletions(-) (limited to 'src/OpenSSL') diff --git a/src/OpenSSL/SSL.py b/src/OpenSSL/SSL.py index dfbd109..c1fb0f5 100644 --- a/src/OpenSSL/SSL.py +++ b/src/OpenSSL/SSL.py @@ -1916,7 +1916,6 @@ class Connection: buf = _text_to_bytes_and_warn("buf", buf) with _ffi.from_buffer(buf) as data: - left_to_send = len(buf) total_sent = 0 diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py index a9b673c..8b12769 100644 --- a/src/OpenSSL/crypto.py +++ b/src/OpenSSL/crypto.py @@ -2556,7 +2556,6 @@ class CRL: class PKCS7: - _pkcs7: Any def type_is_signed(self) -> bool: @@ -2920,7 +2919,6 @@ class _PassphraseHelper: def raise_if_problem(self, exceptionType: Type[Exception] = Error) -> None: if self._problems: - # Flush the OpenSSL error queue try: _exception_from_error_queue(exceptionType) -- cgit v1.2.1