aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8>2011-02-11 16:20:42 +0000
committerpcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8>2011-02-11 16:20:42 +0000
commite4f8bde6ac7b56cff92d681632d6cfd7aa592546 (patch)
treebeceef37ece2a1ffa62614b92daae1232566f7f8
parent9f99325f381f27c4a6218b980d0f037c2bf641bc (diff)
downloadsos-e4f8bde6ac7b56cff92d681632d6cfd7aa592546.tar.gz
[core] Improving 1083
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1084 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rwxr-xr-xsos/sosreport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py
index 5b3155bd..45103ec9 100755
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -209,7 +209,7 @@ def parse_options(opts):
def textcolor(text, color, raw=0):
""" Terminal text coloring function """
- if GlobalVars.__cmdLineOpts__.nocolors or not os.isatty(1):
+ if GlobalVars.__cmdLineOpts__.nocolors or not sys.stdout.isatty():
return text
colors = { "black":"30", "red":"31", "green":"32", "brown":"33", "blue":"34",
"purple":"35", "cyan":"36", "lgray":"37", "gray":"1;30", "lred":"1;31",