]> git.lizzy.rs Git - rust.git/commitdiff
remove unnecessary local variable assignment in context manager
authorChris Simpkins <git.simpkins@gmail.com>
Sat, 8 Feb 2020 03:00:25 +0000 (22:00 -0500)
committerChris Simpkins <git.simpkins@gmail.com>
Sat, 8 Feb 2020 03:00:25 +0000 (22:00 -0500)
src/bootstrap/bootstrap.py

index 1935759a5628e2ad914f2e6fbd3d2a4f1811f484..563f12e7bacbdbcb488d7880c156b56732637180 100644 (file)
@@ -351,7 +351,7 @@ class RustBuild(object):
             try:
                 with tempfile.NamedTemporaryFile(delete=False) as temp_file:
                     temp_path = temp_file.name
-                with tarfile.open(temp_path, "w:xz") as tar:
+                with tarfile.open(temp_path, "w:xz"):
                     pass
                 return True
             except tarfile.CompressionError: