rename class gopherHandler to GopherHandler
This commit is contained in:
parent
cf6fd727a5
commit
c194b01731
4
esgd.py
4
esgd.py
|
@ -140,7 +140,7 @@ class GopherServerLogic:
|
|||
if gph: fa = self.gopherRenderer(fa)
|
||||
self.sendFileArray(fa)
|
||||
|
||||
class gopherHandler(socketserver.BaseRequestHandler, GopherServerLogic):
|
||||
class GopherHandler(socketserver.BaseRequestHandler, GopherServerLogic):
|
||||
def handle(self):
|
||||
decoded = self.recieveRequest()
|
||||
try:
|
||||
|
@ -156,5 +156,5 @@ class gopherHandler(socketserver.BaseRequestHandler, GopherServerLogic):
|
|||
self.serveFile(file[0], parsed[1], file[1])
|
||||
|
||||
if __name__ == "__main__":
|
||||
with socketserver.TCPServer((host, port), gopherHandler) as server:
|
||||
with socketserver.TCPServer((host, port), GopherHandler) as server:
|
||||
server.serve_forever()
|
||||
|
|
Loading…
Reference in New Issue