From 6c23b4c6fc78ee9acdccfe33328a17c7f0bc667f Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 4 Mar 2021 23:39:06 -0500 Subject: [PATCH] unused variable -- open() does not need "as f" --- mesonbuild/scripts/externalproject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/scripts/externalproject.py b/mesonbuild/scripts/externalproject.py index eefa32ef5..9650dc2ad 100644 --- a/mesonbuild/scripts/externalproject.py +++ b/mesonbuild/scripts/externalproject.py @@ -45,7 +45,7 @@ class ExternalProject: f.write(' {} \\\n'.format(path.as_posix().replace(' ', '\\ '))) def write_stampfile(self) -> None: - with open(self.stampfile, 'w', encoding='utf-8') as f: + with open(self.stampfile, 'w', encoding='utf-8'): pass def gnu_make(self) -> bool: