Commit f1b5807a authored by Denis Bilenko's avatar Denis Bilenko

pywsgi: do not use 'log' if it evaluates to false

parent b78809d9
......@@ -359,7 +359,7 @@ class WSGIHandler(object):
def log_request(self):
log = self.server.log
if log is not None:
if log:
log.write(self.format_request() + '\n')
def format_request(self):
......
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