diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-07 12:17:10 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-07 12:17:10 +0000 |
commit | 407c6e13d75246e9bf9646eac0f911cc1c3c0a5c (patch) | |
tree | b0d6cbe3cf5ed84e7d03aa663f904ae0c7e3ec15 | |
parent | 42e9ac4b3e8f34b054e45bfb61c3d6e4153be8b1 (diff) | |
download | portage-407c6e13d75246e9bf9646eac0f911cc1c3c0a5c.tar.gz portage-407c6e13d75246e9bf9646eac0f911cc1c3c0a5c.tar.bz2 portage-407c6e13d75246e9bf9646eac0f911cc1c3c0a5c.zip |
Fix strange _DevNull instance has no attribute 'isatty' warnings that occur when epydoc generates docs.
svn path=/main/trunk/; revision=6748
-rw-r--r-- | pym/portage/process.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/process.py b/pym/portage/process.py index 0cb175375..c3f5d4df4 100644 --- a/pym/portage/process.py +++ b/pym/portage/process.py @@ -112,7 +112,7 @@ def cleanup(): atexit_register(cleanup) # Make sure the original terminal attributes are reverted at exit. -if sys.stdin.isatty(): +if hasattr(sys.stdin, "isatty") and sys.stdin.isatty(): import termios _stdin_termios = termios.tcgetattr(sys.stdin.fileno()) def _reset_stdin_termios(stdin_termios): |