From 69022369401e3487454af868de2e8c007fb708df Mon Sep 17 00:00:00 2001 From: randomuser Date: Tue, 20 Jul 2021 02:12:56 -0500 Subject: [PATCH] remove sendFile(...) function --- esgd.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/esgd.py b/esgd.py index 058a5d8..2b3284d 100644 --- a/esgd.py +++ b/esgd.py @@ -90,10 +90,6 @@ def notFound(context): def invalid(context): context.request.sendall(b"3error: selector contains '..'!\r\n.\r\n") -def sendFile(file, context): - with open(file, "r") as fd: - sendFileArray(fd.readlines(), context) - def sendFileArray(arr, context): [context.request.sendall( (i.rstrip() + "\r\n").encode("utf-8")