]> git.ipfire.org Git - thirdparty/tornado.git/commit
log: Fix color logging detection 2019/head
authorBen Darnell <ben@bendarnell.com>
Thu, 20 Apr 2017 01:38:57 +0000 (21:38 -0400)
committerBen Darnell <ben@bendarnell.com>
Thu, 20 Apr 2017 02:33:33 +0000 (22:33 -0400)
commit57680da7b759010eaaa2f5325dbcc1be4a3bc848
tree1129592c65723756fe674167f9e9540d63f4a09a
parentc9d2a3fa573987629ad576e991c2f3b65f4daab4
log: Fix color logging detection

The previous logic would fail whenever curses is missing (which is
always true on windows, and is occasionally true on other platforms)
and colorama is installed but not initialized in this process (this is
a common occurrence for users of jupyter and ipython on windows).

Fixes #2013
Fixes #2015
tornado/log.py