Skip to content

Commit

Permalink
Reformat code using black 23.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Feb 13, 2023
1 parent 14b3f69 commit e03ab50
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/OpenSSL/SSL.py
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,6 @@ def sendall(self, buf, flags=0):
buf = _text_to_bytes_and_warn("buf", buf)

with _ffi.from_buffer(buf) as data:

left_to_send = len(buf)
total_sent = 0

Expand Down
2 changes: 0 additions & 2 deletions src/OpenSSL/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -2556,7 +2556,6 @@ def export(


class PKCS7:

_pkcs7: Any

def type_is_signed(self) -> bool:
Expand Down Expand Up @@ -2920,7 +2919,6 @@ def callback_args(self) -> Any:

def raise_if_problem(self, exceptionType: Type[Exception] = Error) -> None:
if self._problems:

# Flush the OpenSSL error queue
try:
_exception_from_error_queue(exceptionType)
Expand Down
3 changes: 1 addition & 2 deletions tests/test_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,10 @@ def interact_in_memory(client_conn, server_conn):

# Copy stuff from each side's send buffer to the other side's
# receive buffer.
for (read, write) in [
for read, write in [
(client_conn, server_conn),
(server_conn, client_conn),
]:

# Give the side a chance to generate some more bytes, or succeed.
try:
data = read.recv(2**16)
Expand Down

0 comments on commit e03ab50

Please sign in to comment.