Skip to content

Commit

Permalink
Reformat code with latest black version
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Apr 2, 2023
1 parent 85f72bf commit fb12dba
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion examples/doq_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ async def main(


if __name__ == "__main__":

parser = argparse.ArgumentParser(description="DNS over QUIC server")
parser.add_argument(
"--host",
Expand Down
5 changes: 2 additions & 3 deletions tests/test_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def run_client(
cafile=SERVER_CACERTFILE,
configuration=None,
request=b"ping",
**kwargs
**kwargs,
):
if host is None:
host = self.server_host
Expand Down Expand Up @@ -106,7 +106,7 @@ async def run_server(self, configuration=None, host="::", **kwargs):
port=0,
configuration=configuration,
stream_handler=handle_stream,
**kwargs
**kwargs,
)
try:
yield server._transport.get_extra_info("sockname")[1]
Expand Down Expand Up @@ -235,7 +235,6 @@ def save_ticket(t):
async with self.run_server(
session_ticket_fetcher=store.pop, session_ticket_handler=store.add
) as server_port:

# first request
response = await self.run_client(
port=server_port, session_ticket_handler=save_ticket
Expand Down
2 changes: 1 addition & 1 deletion tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def client_and_server(
server = QuicConnection(
configuration=server_configuration,
original_destination_connection_id=client.original_destination_connection_id,
**server_kwargs
**server_kwargs,
)
server._ack_delay = 0
disable_packet_pacing(server)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def create_client(
cadata=cadata,
cafile=cafile,
is_client=True,
**kwargs
**kwargs,
)
client.handshake_extensions = [
(
Expand All @@ -130,7 +130,7 @@ def create_server(self, alpn_protocols=None, **kwargs):
alpn_protocols=alpn_protocols,
is_client=False,
max_early_data=0xFFFFFFFF,
**kwargs
**kwargs,
)
server.certificate = configuration.certificate
server.certificate_private_key = configuration.private_key
Expand Down

0 comments on commit fb12dba

Please sign in to comment.