[New-bugs-announce] [issue28294] HTTPServer server.py assumes sys.stderr != None

Jaap van der Velde report at bugs.python.org
Wed Sep 28 03:08:24 EDT 2016


New submission from Jaap van der Velde:

On line 556 of server.py, the sys.stderr.write assumes that sys.stderr is assigned and not None.

However, when developing Windows services using the pypiwin32 library (as an example), sys.stderr == None

A workaround is to override the log_message method of the BaseHTTPRequestHandler, but it seems to me that the method should not assume the availability of stderr?

----------
components: Library (Lib)
messages: 277593
nosy: grismar
priority: normal
severity: normal
status: open
title: HTTPServer server.py assumes sys.stderr != None
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28294>
_______________________________________


More information about the New-bugs-announce mailing list