diff options
-rw-r--r-- | pym/portage/output.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |