change variable names HOST, PORT to host, port
This commit is contained in:
parent
6c711ae3da
commit
99befdabca
4
esgd.py
4
esgd.py
|
@ -166,7 +166,5 @@ class gopherHandler(socketserver.BaseRequestHandler):
|
||||||
else: notFound(self)
|
else: notFound(self)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
HOST, PORT = "localhost", 70
|
with socketserver.TCPServer((host, port), gopherHandler) as server:
|
||||||
|
|
||||||
with socketserver.TCPServer((HOST, PORT), gopherHandler) as server:
|
|
||||||
server.serve_forever()
|
server.serve_forever()
|
||||||
|
|
Loading…
Reference in New Issue