summaryrefslogtreecommitdiff
path: root/lib/spack/llnl/util/tty/log.py
diff options
context:
space:
mode:
authorJohn Parent <john.parent@kitware.com>2022-01-24 14:35:44 -0500
committerPeter Scheibel <scheibel1@llnl.gov>2022-03-17 09:01:01 -0700
commitcf1349ba35a958e776759db7b69f54089d2638c6 (patch)
treea169c786aac015f9388ea31deb8884cdf58eb49e /lib/spack/llnl/util/tty/log.py
parente4d4a5193ff4ac2a19a7ae77d66df1cd085a979d (diff)
downloadspack-cf1349ba35a958e776759db7b69f54089d2638c6.tar.gz
spack-cf1349ba35a958e776759db7b69f54089d2638c6.tar.bz2
spack-cf1349ba35a958e776759db7b69f54089d2638c6.tar.xz
spack-cf1349ba35a958e776759db7b69f54089d2638c6.zip
"spack commands --update-completion"
Diffstat (limited to 'lib/spack/llnl/util/tty/log.py')
-rw-r--r--lib/spack/llnl/util/tty/log.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/spack/llnl/util/tty/log.py b/lib/spack/llnl/util/tty/log.py
index c16982241e..0df3cf7829 100644
--- a/lib/spack/llnl/util/tty/log.py
+++ b/lib/spack/llnl/util/tty/log.py
@@ -938,8 +938,7 @@ def _writer_daemon(stdin_multiprocess_fd, read_multiprocess_fd, write_fd, echo,
# write_fd to terminate the reading loop, so we close the file descriptor
# here. Forking is the process spawning method everywhere except Mac OS
# for Python >= 3.8 and on Windows
- if sys.version_info < (3, 8) \
- or sys.platform not in ['darwin', 'cygwin']:
+ if sys.version_info < (3, 8) or sys.platform != 'darwin':
os.close(write_fd)
# Use line buffering (3rd param = 1) since Python 3 has a bug