Fix broken faulthandler condition

This commit is contained in:
Florian Bruhin 2014-05-14 14:38:00 +02:00
parent 0508f509ec
commit a86a3427fc

View File

@ -33,7 +33,7 @@ def init_faulthandler():
This print a nice traceback on segfauls.
"""
if sys.stderr is not None:
if sys.stderr is None:
# When run with pythonw.exe, sys.stderr can be None:
# https://docs.python.org/3/library/sys.html#sys.__stderr__
# If we'd enable faulthandler in that case, we just get a weird