diff options
author | Raymond Hettinger <python@rcn.com> | 2002-05-31 23:03:33 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-05-31 23:03:33 (GMT) |
commit | c0418609eb0864c9ee532d559858de22cc28fb3a (patch) | |
tree | 7c0d3b8b11a5a2bb81c7a11cac51cdd4bb7e87f9 /Lib/BaseHTTPServer.py | |
parent | 3e12905e034c22d067c37d42f8627108f9b25f2d (diff) | |
download | cpython-c0418609eb0864c9ee532d559858de22cc28fb3a.zip cpython-c0418609eb0864c9ee532d559858de22cc28fb3a.tar.gz cpython-c0418609eb0864c9ee532d559858de22cc28fb3a.tar.bz2 |
Use is None rather than general boolean
Diffstat (limited to 'Lib/BaseHTTPServer.py')
-rw-r--r-- | Lib/BaseHTTPServer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/BaseHTTPServer.py b/Lib/BaseHTTPServer.py index ab34e8f..2e7bb3f 100644 --- a/Lib/BaseHTTPServer.py +++ b/Lib/BaseHTTPServer.py @@ -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) |