mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
Use is None rather than general boolean
This commit is contained in:
parent
3e12905e03
commit
c0418609eb
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue