Skip to content

Commit

Permalink
Fix typos (#20)
Browse files Browse the repository at this point in the history
Found via `codespell`
  • Loading branch information
kianmeng authored Aug 2, 2023
1 parent 9fc4cfe commit 9b67cb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quickhttp/http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


def is_port_available(port: int) -> bool:
"""Check if port is available (not in use) on the local host. This is determined by attemping
"""Check if port is available (not in use) on the local host. This is determined by attempting
to create a socket connection with that port. If the connection is successful, that means
something is using the port.
Expand All @@ -26,7 +26,7 @@ def is_port_available(port: int) -> bool:
"""
with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as sock:
if sock.connect_ex(("127.0.0.1", port)) == 0:
# Successfull connection
# Successful connection
return False
return True

Expand Down

0 comments on commit 9b67cb3

Please sign in to comment.