From 5fcb7fc05ea618bb8e520f9cc4caaf9abe69bd2e Mon Sep 17 00:00:00 2001 From: lakshyacis Date: Tue, 3 Sep 2019 14:34:17 +0530 Subject: [PATCH] http-old flake8 fixes --- src/network/http-old.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/network/http-old.py b/src/network/http-old.py index 56d24915..d38ba8b6 100644 --- a/src/network/http-old.py +++ b/src/network/http-old.py @@ -24,7 +24,7 @@ class HTTPClient(asyncore.dispatcher): self.close() def handle_read(self): -# print self.recv(8192) + # print self.recv(8192) self.recv(8192) def writable(self): @@ -34,6 +34,7 @@ class HTTPClient(asyncore.dispatcher): sent = self.send(self.buffer) self.buffer = self.buffer[sent:] + if __name__ == "__main__": # initial fill for i in range(parallel): @@ -44,6 +45,6 @@ if __name__ == "__main__": for i in range(parallel - len(asyncore.socket_map)): HTTPClient('127.0.0.1', '/') print "Active connections: %i" % (len(asyncore.socket_map)) - asyncore.loop(count=len(asyncore.socket_map)/2) + asyncore.loop(count=len(asyncore.socket_map) / 2) if requestCount % 100 == 0: print "Processed %i total messages" % (requestCount)