Skip to content

Commit 3998249

Browse files
committed
remove unnecessary local variable assignment in context manager
1 parent a29424a commit 3998249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def support_xz():
351351
try:
352352
with tempfile.NamedTemporaryFile(delete=False) as temp_file:
353353
temp_path = temp_file.name
354-
with tarfile.open(temp_path, "w:xz") as tar:
354+
with tarfile.open(temp_path, "w:xz"):
355355
pass
356356
return True
357357
except tarfile.CompressionError:

0 commit comments

Comments
 (0)