Commit f56721bb authored by Denis Bilenko's avatar Denis Bilenko

use generator expression instead of map

parent 313e93df
......@@ -198,7 +198,7 @@ class WSGIHandler(BaseHTTPServer.BaseHTTPRequestHandler):
towrite.append(data)
self.wfile.writelines(towrite)
self.response_length += sum(map(len, towrite))
self.response_length += sum(len(x) for x in towrite)
def start_response(self, status, headers, exc_info=None):
if exc_info:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment