summaryrefslogtreecommitdiffstats
path: root/pym/output.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/output.py')
-rw-r--r--pym/output.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/output.py b/pym/output.py
index 62ec975fe..660f06999 100644
--- a/pym/output.py
+++ b/pym/output.py
@@ -174,7 +174,7 @@ def nc_len(mystr):
return len(tmp)
def xtermTitle(mystr, raw=False):
- if havecolor and dotitles and os.environ.has_key("TERM") and sys.stderr.isatty():
+ if dotitles and "TERM" in os.environ and sys.stderr.isatty():
myt=os.environ["TERM"]
legal_terms = ["xterm","Eterm","aterm","rxvt","screen","kterm","rxvt-unicode","gnome"]
for term in legal_terms: