Commit 59fb1168 authored by Raymond Hettinger's avatar Raymond Hettinger

Use is None rather than general boolean

parent 8a946886
......@@ -331,7 +331,7 @@ class BaseHTTPRequestHandler(SocketServer.StreamRequestHandler):
short, long = self.responses[code]
except KeyError:
short, long = '???', '???'
if not message:
if message is None:
message = short
explain = long
self.log_error("code %d, message %s", code, message)
......
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