Skip to content

Commit

Permalink
Merge pull request #84 from KOSASIH/deepsource-transform-74259c18
Browse files Browse the repository at this point in the history
style: format code with Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf
  • Loading branch information
KOSASIH authored May 10, 2024
2 parents 764adda + 9964671 commit c9d8ef4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions network/networking.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import socket


class Networking:
def __init__(self):
self.host = '0.0.0.0'
self.host = "0.0.0.0"
self.port = 8080
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.socket.bind((self.host, self.port))
Expand All @@ -11,7 +12,7 @@ def listen_for_connections(self):
self.socket.listen(5)
while True:
connection, address = self.socket.accept()
print(f'Connection from {address} has been established!')
print(f"Connection from {address} has been established!")
self.handle_connection(connection)

def handle_connection(self, connection):
Expand Down

0 comments on commit c9d8ef4

Please sign in to comment.