diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2023-08-14 18:38:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-14 12:38:59 -0400 |
commit | 6e31676b29118b1d8eb7ce63a1dc9dc94a8489b6 (patch) | |
tree | 7ae195ceafc4f5134ca29c0e0b17106a53ce6764 /lib/spack/llnl/util/tty/log.py | |
parent | 1fff0241f2678d7e6f450a91fa298f86504ce66c (diff) | |
download | spack-6e31676b29118b1d8eb7ce63a1dc9dc94a8489b6.tar.gz spack-6e31676b29118b1d8eb7ce63a1dc9dc94a8489b6.tar.bz2 spack-6e31676b29118b1d8eb7ce63a1dc9dc94a8489b6.tar.xz spack-6e31676b29118b1d8eb7ce63a1dc9dc94a8489b6.zip |
Fix style issues with latest versions of tools (#39422)
Diffstat (limited to 'lib/spack/llnl/util/tty/log.py')
-rw-r--r-- | lib/spack/llnl/util/tty/log.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/llnl/util/tty/log.py b/lib/spack/llnl/util/tty/log.py index f352d33ae5..8f685442a2 100644 --- a/lib/spack/llnl/util/tty/log.py +++ b/lib/spack/llnl/util/tty/log.py @@ -780,7 +780,7 @@ class winlog: raise RuntimeError("file argument must be set by __init__ ") # Open both write and reading on logfile - if type(self.logfile) == io.StringIO: + if isinstance(self.logfile, io.StringIO): self._ioflag = True # cannot have two streams on tempfile, so we must make our own sys.stdout = self.logfile |