1
1
mirror of https://github.com/ariya/phantomjs.git synced 2024-10-26 14:29:13 +03:00

[Windows] Disable color output detection

This commit is contained in:
Vitaly Slobodin 2016-01-23 12:36:58 +03:00
parent a22775a188
commit 3e8e04e3d6

View File

@ -6,6 +6,7 @@ import errno
import glob
import imp
import os
import platform
import posixpath
import re
import shlex
@ -79,7 +80,7 @@ def activate_colorization(options):
elif options.color == "never":
_COLORS = _COLOR_NONE
else:
if sys.stdout.isatty():
if sys.stdout.isatty() and platform.system() != "Windows":
try:
n = int(subprocess.check_output(["tput", "colors"]))
if n >= 8: