From 9e11e62bca86e5c04e8b0dfcc49241219e526936 Mon Sep 17 00:00:00 2001 From: Morten Kristensen Date: Sun, 24 Oct 2021 18:49:05 +0200 Subject: py-vermin: add latest version 1.3.1 (#26920) * py-vermin: add latest version 1.3.1 * Exclude line from Vermin since version is already being checked for Vermin 1.3.1 finds that `encoding` kwarg of builtin `open()` requires Python 3+. --- lib/spack/llnl/util/tty/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/llnl/util/tty/log.py b/lib/spack/llnl/util/tty/log.py index 7003f58f8d..efcd487f23 100644 --- a/lib/spack/llnl/util/tty/log.py +++ b/lib/spack/llnl/util/tty/log.py @@ -323,7 +323,7 @@ class FileWrapper(object): if sys.version_info < (3,): self.file = open(self.file_like, 'w') else: - self.file = open(self.file_like, 'w', encoding='utf-8') + self.file = open(self.file_like, 'w', encoding='utf-8') # novm else: self.file = StringIO() return self.file -- cgit v1.2.3-70-g09d2