From: Zac Medico Date: Sat, 10 Feb 2007 22:18:07 +0000 (-0000) Subject: Make xterm titles work even when color is disabled. Thanks to Joachim Kaeber in bug #166255. svn path=/main/trunk/; revision=5950 --- diff --git a/pym/portage/output.py b/pym/portage/output.py index 600b8183b..0b58c81b6 100644 --- a/pym/portage/output.py +++ b/pym/portage/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: