fix to_bool arguments

This commit is contained in:
Robert Kaussow 2019-10-08 15:58:08 +02:00
parent b75546078e
commit ce419e2125
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ def to_bool(string):
def _should_do_markup():
py_colors = os.environ.get("PY_COLORS", None)
if py_colors is not None:
return to_bool(py_colors, strict=False)
return to_bool(py_colors)
return sys.stdout.isatty() and os.environ.get("TERM") != "dumb"